Skip to content

shadowmodder/featurecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI

featurecheck

Most production ML incidents are data incidents. featurecheck is a tiny, NumPy-only guardrail you can run in training, batch scoring, or CI to catch feature drift and schema breakage early.

Install

pip install -e .

Usage

from featurecheck import drift_report, psi, ks_statistic, check_schema

# Distribution drift between a reference and a live sample
drift_report(reference_values, live_values)   # -> {"psi":..., "ks":..., "level":"ok|warn|alert"}

# Schema / null / dtype validation on records
check_schema(records, {"age": "int", "email": "str"})
  • PSI with quantile binning from the reference sample
  • KS two-sample statistic
  • Schema check: missing/extra columns, per-column null rates, dtype mismatches

MIT licensed.

About

Most production ML incidents are data incidents. `featurecheck` is a tiny, NumPy-only guardrail you can run in

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages