Repository navigation
docs(notebooks): interactive guide to classification metrics (v0.31.2) - #151
Merged
Merged
Conversation
…trics A marimo notebook for entry-level data scientists comparing macro-F1, balanced accuracy, Cohen's kappa (default and with inverse-frequency class weights), macro AUROC and macro AUPRC on a generic 82/13/5 three-class readmission example: threshold vs ranking metrics, nine confusion-matrix scenarios, a worked calculation, threshold-shift and score-separation sliders, and an editable confusion matrix. Scores for the ranking metrics are simulated so that their argmax reproduces each matrix. Version 0.31.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013mqpy2KSiyZJUxDUxTBELL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Alp · project thread
Summary
Adds
notebooks/classification_metrics.py, an interactive marimo notebook for entry-level data scientists on the classifier scores the pipeline reports. Version 0.31.2, documentation only: no pipeline code, config or output changes.synthdata/evaluation/tstr.py(macro AUPRC = mean one-vs-rest average precision over present classes).marimo is already a runtime dependency, so nothing is added.
Run:
uv run marimo edit notebooks/classification_metrics.pyChecks
uv run ty check(0 errors),uvx ruff check .,uvx ruff format --check ., unit tests (858 passed), CPU integration tier,marimo checkon the notebook, and the notebook run in a browser withmarimo run.🤖 Generated with Claude Code
https://claude.ai/code/session_013mqpy2KSiyZJUxDUxTBELL