Repository navigation
Record prediction runs and monitor score drift - #64
Merged
Merged
Conversation
Contributor
Author
Change map
|
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 20, 2026 22:42 — with
GitHub Actions
Inactive
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 20, 2026 23:49
e73a404 to
704dcde
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 20, 2026 23:49 — with
GitHub Actions
Inactive
2 tasks done
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 00:20
704dcde to
f57ba5f
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 21, 2026 00:20 — with
GitHub Actions
Inactive
3 tasks done
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 07:18
f57ba5f to
2c47c90
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 21, 2026 07:18 — with
GitHub Actions
Inactive
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 07:57
2c47c90 to
ad1936e
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 21, 2026 07:57 — with
GitHub Actions
Inactive
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 08:47
ad1936e to
2b2748e
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 21, 2026 08:47 — with
GitHub Actions
Inactive
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 09:01
2b2748e to
0bb99c3
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 21, 2026 09:02 — with
GitHub Actions
Inactive
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 16:24
0bb99c3 to
a2defce
Compare
Vedaant-J
temporarily deployed
to
gha-kumo-workflow-tests
October 21, 2026 16:24 — with
GitHub Actions
Inactive
Vedaant-J
changed the base branch from
vedaant/mlops-bundle-provenance
to
vedaant/mlops-lineage-columns
October 21, 2026 16:25
Vedaant-J
force-pushed
the
vedaant/mlops-score-sketch
branch
from
October 21, 2026 16:37
a2defce to
fe540e0
Compare
Vedaant-J
had a problem deploying
to
gha-kumo-workflow-tests
October 21, 2026 16:37 — with
GitHub Actions
Error
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pass an explicit 16 MiB part size and 4 upload threads to files.upload when the SDK accepts them (databricks-sdk 0.70+), so a large plain object no longer buffers up to parallelism x part_size with the SDK's defaults. Older SDKs upload single-threaded in 10 MiB chunks and get no extra args. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Victsm
previously approved these changes
Nov 3, 2026
Victsm
left a comment
Collaborator
There was a problem hiding this comment.
Re-reviewed 8a31c5e. Default BP overwrite/schema behavior and explicit APPEND lineage remain preserved; independent alias and timeout probes pass. Reviewed timestamp drift normalization across index clocks and the scored-cohort/pipeline fixes. No new code blocker found in this bounded pass. Current restricted-BigQuery identity configuration failures remain a separate CI gate.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… files Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The MLflow runs list shows a run's first input, so a fit logs its training table, then its graph snapshot, then its source tables by name. The snapshot input lists its id and each table's row count as its schema. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch was previously deployed
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.
Stack: main (#53, #112, #114, #50, #60 merged) → #64 → #115. Merge bottom to top.
Summary
Teams that score on a schedule cannot tell which model and data produced a table of scores, whether the scores moved, or how good they were once outcomes arrived. This PR records and monitors prediction runs:
Trainer.predictwrites aPredictionManifest(_provenance.json): model, snapshot and source-table versions, scoring options, destinations, skipped entities, and exact counts of its scores on fixed bins. With MLOps on, the run is also stored under<root>/predictions/<id>/and tracked.score_driftandevaluateread. The platform DataFrame adapters (the MLflow pyfunc'spredict, a warehouse's batch call) return scores but record no Kumo prediction run.Trainer.score_driftgives PSI, KS and Wasserstein against the holdout and a previous run, plus input-column drift;Trainer.evaluategives realized metrics once outcomes are in a newer snapshot, with a DiskGraph join that keeps memory bounded. For link prediction, PSI against the holdout is a plain number with no shift verdict, since the holdout covers only entities with a future target; every other task, multilabel included, gets one.SingleRunHooks), with a Markdown run card, build time and size asprep.*tags, and each dataset's role (training examples,graph context,scoring graph,labels, ...) in the card's Lineage block. Metric names are the same on MLflow and Snowflake, with_at_for@(test/map_at_10).pred/score_histogram(per class aspred/score_histogram/<class>for multi-class and multilabel; step = score in hundredths),pred/prediction_histogram(regression; step = the bin on the training target's bins) and, for recommendations,pred/item_popularity(step = item rank, top 100). Where the fit counted its holdout,pred/holdout_*carries the holdout's counts on the same steps, scaled to the run's total. The card's "Charts: step = ..." note says what each step is, anddocs/mlops.mdshows how to overlaypred/Xandpred/holdout_Xin the MLflow Chart view.Trainer.evaluatecovers every task type. Entities the snapshot lacks are skipped and counted, every skipped row is listed as Parquet underskipped/, andpredictraises only when nothing can be scored.test/*holdout metrics are also logged on its logged model without a dataset link, so the Models tab and Compare versions show onetest/<metric>column per version; the training table remains the run's input dataset. Snowflake runs carry the card and akumo.modelparam, and tracking stops with a clear error at the experiment's 500-run limit. The MLflow experiment note is a short list of the run filters.examples/mlopsships fit and score job templates for Databricks Jobs, SageMaker Pipelines and Snowflake Tasks;docs/mlops.mdhas recipes that feed exported evaluations to Databricks and Snowflake warehouse monitors.Usage
Back-compat
WriteMode.APPENDaddsPREDICTION_IDandBUNDLE_ID.APPEND;OVERWRITEempties it first.Nonewith a reason.on_error="raise"after outputs are written; predictions unchanged.Trackingwith fit hooks onlyTrackingreadingrecord.summariesSeries,HistogramandConfusionare new summary types; skip types you don't handle.diskgraph.compute_col_stats_for_parquetcallersTesting
test_score_counts.py,test_evaluation_counts.py,test_prediction_counts.py,test_score_drift.pycheck every count and drift statistic against a brute-force recount.test_monitoring.py(27 tests: maturity, anchors, exports, metric definitions, exact drift),test_prediction_manifest.py(12),test_tracking_contract.py,test_mlflow_tracking.py,test_snowflake_tracking.py,test_card.py,test_score_stats.py,test_dataset_lineage.py,test_summary_tables.py,test_prediction_table_output.py.test_job_templates.pyrunsfit_job.pythenscore_job.pyend to end on local Parquet.test_col_stats_options.pypins the default statistics output by SHA-256; Rust tests cover the evaluation join and value bins.Change map: see the
kumo-pr-change-mapcomment.🤖 Generated with Claude Code