Skip to content

feat: mlbundle 0.1.0a3 with record prediction - #21

Merged
UlloaSP merged 1 commit into
mainfrom
develop
Oct 13, 2026
Merged

UlloaSP merged 1 commit into
mainfrom
develop

Conversation

@UlloaSP

@UlloaSP UlloaSP commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Promotes develop to main for the 0.1.0a3 pre-alpha.

What changes since 0.1.0a2

  • LoadedBundle.predict_record(record) returns one OutputPrediction per model output: labels, probabilities, the native model's own class decision as predicted_label, or the value for a regressor.
  • LoadedBundle.row_from_record(record) returns the validated row in feature order without predicting.
  • Record keys follow the schema mapping: the feature name when the model exposes names, the 0-based position otherwise. Numeric strings and true/false are accepted; None only for a feature the schema marks as not required. Errors name the key and never echo the value.
  • series fields are written with columns, the shape MLForm consumes.
  • EnvironmentMismatchError names the declared and installed scikit-learn versions when a skops-backed bundle fails to load under a different version.
  • InvalidManifestError names the writer and reader versions when the manifest comes from another pre-release.

Compatibility

Bundles written by 0.1.0a2 remain valid. schema_version stays "2"; only the series shape changed, and no existing bundle contains one. Format 1 is not frozen.

Verification

  • CI on develop for feat: own runtime record predictions in mlbundle #20: lint, types, build, wheel tests on Ubuntu and Windows.
  • Local: 1,772 tests, 91.96% coverage; twine check --strict passes for both artifacts.
  • Real models: the owner's five 0.1.0a2 bundles load, and record prediction matches the original models' probabilities and class decisions on 302 rows each.

@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ef9d4661-cafe-4d62-a6e7-208c231f2f00
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@UlloaSP
UlloaSP merged commit 3a6bff5 into main Oct 13, 2026
17 checks passed
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