jpmml/sklearn2pmml
Python library for converting Scikit-Learn pipelines to PMML
What it solves
SkLearn2PMML addresses the challenge of model portability. Scikit-Learn models are often difficult to move between different environments because they lack standardized metadata. This tool converts Scikit-Learn pipelines into PMML (Predictive Model Markup Language), an industry-standard XML format that allows machine learning models to be deployed and executed across diverse platforms and systems.
How it works
The package acts as a Python wrapper for the JPMML-SkLearn library. It provides a utility function to convert a fitted Scikit-Learn estimator or a saved pickle file into a PMML document. For more complex needs, it offers a PMMLPipeline class that allows you to attach crucial metadata—such as feature names and types—directly to your pipeline, ensuring the resulting PMML file is robust and ready for production.
Who it’s for
This tool is for data scientists and machine learning engineers who need to deploy Scikit-Learn models into production environments that may not support Python or the specific Scikit-Learn version used during training. It is particularly useful for teams that rely on PMML-compliant scoring engines for model execution.
Highlights
- Converts Scikit-Learn pipelines, transformers, and predictors into standard PMML format.
- Supports both direct conversion of live objects and saved model files (pickle, joblib, dill).
- Includes a
PMMLPipelineclass to manage metadata, feature domains, and prediction post-processing. - Provides specialized transformers for data preprocessing, ensemble modeling, and business logic integration.
- Compatible with a wide range of Scikit-Learn versions, from 0.17 to the latest releases.
Related
- Project
- Project
- Project
- Project
- Project