You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revise Serialized Model Structure for Standardization #40
Review and refine the structure of the serialized model to align with possible existing serialization standards. The current format includes fields such as estimator_class, attributes, params,... and metadata like producer_version. Explore established standards (e.g., ONNX, PMML) to ensure compatibility and extensibility. Propose a revised structure that balances clarity, completeness, and interoperability.
changed the title [-]Revise Serialized **Model Structure** for Standardization[/-][+]Revise Serialized Model Structure for Standardization[/+]on Sep 23, 2025
@Gnpd I have been playing with it over the last few days, and I think the format is very nice. I am a bit uncertain about the difference between the producer_name and the domain. Is the domain the general framework (e.g., sklearn) and the producer_name any library that implements the same API as the domain (e.g., could be sklearn itself but also chemotools?
You're right, the idea is that producer_name refers to the specific library or package the model comes from (for example, sklearn for pure scikit-learn estimators, or chemotools or any other compatible library).
domain always refers to the general framework or API that the model follows, here it’s always sklearn, since we’re using the SklearnSerializer.
From the latest update, we have:
"producer_version": sklearn.__version__, # instead of getattr(model, "_sklearn_version", None)
but not sure what is best...
I also realized that we’re not currently covering the version of the producer_name, which might be something to include later.
But this is still under discussion, so it’s good to have different perspectives before making a final decision.
Opened #57 as a first step on V2 format: the wire format now has an explicit version (openmodels_format_version, currently 2), and the previously scattered bookkeeping fields (producer_version, producer_name, domain, etc.) are grouped under a single root-level metadata object instead of being flat and duplicated on every nested estimator in a composite (Pipeline, VotingClassifier, ...). metadata also now supports optional provenance fields (title, description, author, license, metrics) and new autofilled ones (created_at, dependency_versions, producers - per-package versions across the whole estimator tree, not just the outermost one).
Activity
[-]Revise Serialized **Model Structure** for Standardization[/-][+]Revise Serialized Model Structure for Standardization[/+]paucablop commentedon Oct 19, 2025
@Gnpd I have been playing with it over the last few days, and I think the format is very nice. I am a bit uncertain about the difference between the
producer_nameand thedomain. Is the domain the general framework (e.g.,sklearn) and theproducer_nameany library that implements the same API as thedomain(e.g., could besklearnitself but alsochemotools?Gnpd commentedon Oct 20, 2025
You're right, the idea is that
producer_namerefers to the specific library or package the model comes from (for example, sklearn for pure scikit-learn estimators, or chemotools or any other compatible library).domainalways refers to the general framework or API that the model follows, here it’s always sklearn, since we’re using theSklearnSerializer.From the latest update, we have:
but not sure what is best...
I also realized that we’re not currently covering the version of the
producer_name, which might be something to include later.But this is still under discussion, so it’s good to have different perspectives before making a final decision.
Gnpd commentedon Sep 4, 2026
Addressed in
docs/format.mdCurrent format
Leaving this open for further structural suggestions.
Gnpd commentedon Sep 5, 2026
Opened #57 as a first step on V2 format: the wire format now has an explicit version (
openmodels_format_version, currently2), and the previously scattered bookkeeping fields (producer_version,producer_name,domain, etc.) are grouped under a single root-levelmetadataobject instead of being flat and duplicated on every nested estimator in a composite (Pipeline,VotingClassifier, ...).metadataalso now supports optional provenance fields (title,description,author,license,metrics) and new autofilled ones (created_at,dependency_versions,producers- per-package versions across the whole estimator tree, not just the outermost one).See details here: https://github.com/Gnpd/openmodels/blob/format-2/docs/format.md