Model Evaluator Block
- from @localmode
- by LocalMode
Evaluate a selected classifier over a selected labeled dataset via useEvaluateModel, reporting accuracy plus macro precision/recall/F1, run duration, and a color-coded confusion matrix, with completed/total progress and cancel, JSON export, and clear-results. Keeps one justified local file (datasets.ts) holding the labeled evaluation datasets and the radio-card selector, too large to inline without harming readability (design D5). No model bytes download until an explicit in-block action.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @localmode/ui/blocks/text-insights/model-evaluatorRegistry dependencies6
- @localmode/ui/lib/utils
- @localmode/ui/results/evaluation-metrics-dashboard
- @localmode/ui/local-first/model-loading-panel
- @localmode/ui/local-first/cache-badge
- @localmode/ui/results/error-alert
- @localmode/ui/results/mode-error-boundary
