Skip to content

test: ground-truth harness runs a metric case (SKEEP-009 phase 0) - #1561

Merged
michalharakal merged 1 commit into
developfrom
feature/1223-metric-ground-truth-spike
Nov 23, 2026
Merged

michalharakal merged 1 commit into
developfrom
feature/1223-metric-ground-truth-spike

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

What

Phase 0 (spike) of SKEEP-009: prove the metric fixture convention end to end with Accuracy.

  • GroundTruthLoader keeps string op.* values (op.target_encoding); they were dropped.
  • MetricExecutor.kt: GroundTruthMetricCase, toMetricCase() and a MetricExecutor with Accuracy registered. An unknown metric, an unknown parameter, a missing op.target_encoding, an odd input count or a non-scalar result fails the case with a message that names the problem.
  • GroundTruthIntegrationTest: new TS-008 test against scikit-learn fixtures (absolute tolerance 1e-6). The "all suites" test leaves metric cases to it.
  • MetricExecutorTest: 9 hand-built cases, no Docker needed.
  • CHANGELOG entry.

Not in this PR (phase 1): validateMetric on the validator, the reset() check, the workflow path filter for nn/metrics/**, CONTRACT.md.

Depends on, merge order

  1. gradienttracer: "feat: write string op_params, reject unsupported types"
  2. skainet-ground-truth: "feat: TS-008 classification metrics, Accuracy cases (scikit-learn)"
  3. this PR

The Ground Truth Validation job builds the image from the default branches of those two repositories, so it stays red here until both are merged (TS-008 is required and does not exist yet). Re-run it after that.

Test

With an image built locally from the two producer branches: :skainet-test:skainet-test-groundtruth:jvmTest -PrequireGroundTruth=true runs 27 tests, 0 failures.

Fixture scikit-learn (F32) SKaiNET
accuracy_one_batch 0.3125 0.3125
accuracy_two_batches (32 + 20 samples, fed separately) 0.38461539 0.38461538

Refs #1223

🤖 Generated with Claude Code

GroundTruthMetricCase, toMetricCase() and a MetricExecutor with Accuracy
registered. GroundTruthLoader keeps string op.* values. New TS-008
integration test compares with scikit-learn fixtures; hand-built cases
test the path without Docker.

Refs #1223

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@michalharakal
michalharakal merged commit 7b303b5 into develop Nov 23, 2026
16 of 17 checks passed
@michalharakal
michalharakal deleted the feature/1223-metric-ground-truth-spike branch November 23, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant