{% extends "ui/templates/base/layout.html" %} {% block content %}
Accounting Intelligence · Phase 13
Tenant-specific model trained only from accountant-reviewed outcomes. No external AI API is required. New models start in shadow mode and never post to Tally.
To allow an active model to update suggestions after shadow validation, set ACCOUNTING_INTERNAL_MODEL_ENABLED=true on the ERP server. Even then it changes only the suggested Accounting Nature; ledger mapping and human review remain unchanged.
| Version | Training | Classes | Validation | Top-2 | Status | |
|---|---|---|---|---|---|---|
{{ m.version_label }} {{ m.algorithm }} |
{{ m.training_examples }} train / {{ m.validation_examples }} validation | {{ m.class_count }} · {{ m.vocabulary_size }} features | {{ '%.1f'|format(m.validation_accuracy * 100) }}% | {{ '%.1f'|format(m.validation_top2_accuracy * 100) }}% | {{ 'Active' if m.is_active else 'Shadow' }} | {% if not m.is_active %}{% endif %} |
| No internal model trained yet. | ||||||
{{ summary.reviewed_predictions }} reviewed · {{ summary.correct_predictions }} correct · {{ summary.applied_predictions }} applied to suggestions
| Source | Model | Nature ID | Probability | Mode | Outcome |
|---|---|---|---|---|---|
| {{ p.source_type }} #{{ p.source_record_id }} | #{{ p.model_id }} | {{ p.predicted_nature_id }} | {{ '%.1f'|format(p.predicted_probability * 100) }}% | {{ 'Shadow' if p.shadow_mode else 'Live suggestion' }} | {% if p.prediction_correct is sameas true %}Correct{% elif p.prediction_correct is sameas false %}Corrected by reviewer{% else %}Awaiting review{% endif %} |
| No model predictions yet. | |||||