Skip to content
FunCoding

evaluate-model

Evaluate binary classification or regression models with confusion-matrix metrics, tie-aware ROC AUC, regression errors, and deterministic bootstrap confidence intervals; emphasizes held-out data, uncertainty, baselines, and subgroup checks.

Star
676
Category
Science
License
MIT
Last commit
Dec 2, 2026

skills/evaluate-model/SKILL.md

View on GitHub

Evaluate a model

Use this skill when comparing predictive models, selecting a threshold, or reporting held-out performance. Compute metrics only after defining the target, unit of analysis, split boundary, baseline, and decision cost.

Workflow

  1. Confirm that evaluation examples and related entities were never used for fitting, preprocessing, feature selection, or threshold selection.
  2. Choose a primary metric from the scientific or operational question; do not select it after inspecting test results.
  3. Compare against a simple baseline and report uncertainty, not only a point estimate.
  4. Inspect clinically or scientifically relevant subgroups and failure modes.
  5. Keep probability quality, ranking quality, and thresholded decisions separate. Accuracy is rarely sufficient for an imbalanced target.
  6. Save predictions with stable sample IDs so every aggregate is auditable.

Import and run

from importlib import import_module

metrics = import_module("evaluate-model.kernel")
classification = metrics.binary_classification_metrics(
    y_true, scores=probabilities, threshold=0.35
)
regression = metrics.regression_metrics(y_true_continuous, predictions)
interval = metrics.bootstrap_ci(per_sample_losses, resamples=2000, seed=42)

The binary helper reports the confusion matrix, accuracy, precision, recall, specificity, F1, balanced accuracy, and tie-aware ROC AUC when scores are provided. Undefined ratios are returned as None, not silently replaced by zero.

Reporting contract

State the split strategy, sample and group counts, prevalence, threshold source, primary metric with interval, baseline, subgroup caveats, and all exclusions. Bootstrap intervals describe sampling variability under the resampling unit; they do not correct leakage, dataset shift, measurement error, or dependence between observations. Use grouped or clustered resampling when rows are not independent.

Similar Skills

graphify

GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days

wiki-query

PApaperclipai/paperclip119k1,966 new stars in the last 7 days

Official

clinical-case-report

NEnexu-io/open-design111k1,277 new stars in the last 7 days

style-sampling

HEheygen-com/hyperframes94k4,558 new stars in the last 7 days

academic-paper-review

BYbytedance/deer-flow86k276 new stars in the last 7 days

systematic-literature-review

BYbytedance/deer-flow86k276 new stars in the last 7 days