{"id":13467109,"url":"https://github.com/jpmml/jpmml-sklearn","last_synced_at":"2026-04-28T19:01:08.600Z","repository":{"id":45778951,"uuid":"42821755","full_name":"jpmml/jpmml-sklearn","owner":"jpmml","description":"Java library and command-line application for converting Scikit-Learn pipelines to PMML","archived":false,"fork":false,"pushed_at":"2026-04-04T10:10:08.000Z","size":287919,"stargazers_count":540,"open_issues_count":4,"forks_count":117,"subscribers_count":18,"default_branch":"master","last_synced_at":"2026-04-04T10:38:01.574Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpmml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-09-20T17:15:13.000Z","updated_at":"2026-04-04T10:10:12.000Z","dependencies_parsed_at":"2023-09-22T06:08:57.906Z","dependency_job_id":"bb67e5c0-1b37-484d-b15f-e32cda15cf59","html_url":"https://github.com/jpmml/jpmml-sklearn","commit_stats":{"total_commits":1368,"total_committers":1,"mean_commits":1368.0,"dds":0.0,"last_synced_commit":"cef5fdaa5bfc775c2993463cf64b794666067e04"},"previous_names":[],"tags_count":222,"template":false,"template_full_name":null,"purl":"pkg:github/jpmml/jpmml-sklearn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmml%2Fjpmml-sklearn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmml%2Fjpmml-sklearn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmml%2Fjpmml-sklearn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmml%2Fjpmml-sklearn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmml","download_url":"https://codeload.github.com/jpmml/jpmml-sklearn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmml%2Fjpmml-sklearn/sbom","scorecard":{"id":535831,"data":{"date":"2025-08-11","repo":{"name":"github.com/jpmml/jpmml-sklearn","commit":"b06ba91a4df71e83cbe1af57d2353e62d5273dff"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/maven.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/jpmml/jpmml-sklearn/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/jpmml/jpmml-sklearn/maven.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.9.14 not signed: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/237253050","Warn: release artifact 1.9.13 not signed: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/228680989","Warn: release artifact 1.9.12 not signed: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/227775841","Warn: release artifact 1.9.11 not signed: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/226597021","Warn: release artifact 1.9.10 not signed: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/225389781","Warn: release artifact 1.9.14 does not have provenance: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/237253050","Warn: release artifact 1.9.13 does not have provenance: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/228680989","Warn: release artifact 1.9.12 does not have provenance: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/227775841","Warn: release artifact 1.9.11 does not have provenance: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/226597021","Warn: release artifact 1.9.10 does not have provenance: https://api.github.com/repos/jpmml/jpmml-sklearn/releases/225389781"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6w62-3jvj-mfj6","Warn: Project is vulnerable to: GHSA-7qq7-pvm9-x8rf","Warn: Project is vulnerable to: GHSA-h7xg-cmpp-48hf","Warn: Project is vulnerable to: GHSA-p2vc-m5fv-9w9m","Warn: Project is vulnerable to: GHSA-wjpv-64v2-2qpq","Warn: Project is vulnerable to: GHSA-wwr9-4gmr-xvq9"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T06:56:08.466Z","repository_id":45778951,"created_at":"2025-08-20T06:56:08.466Z","updated_at":"2025-08-20T06:56:08.466Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32394478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T15:00:53.232Z","updated_at":"2026-04-28T19:01:08.561Z","avatar_url":"https://github.com/jpmml.png","language":"Java","funding_links":[],"categories":["Java","Model serialisation formats","Main Contents","Software","人工智能"],"sub_categories":["Model Standard Formats for interoperability","Serialising and transpiling models","机器学习"],"readme":"JPMML-SkLearn [![Build Status](https://github.com/jpmml/jpmml-sklearn/workflows/maven/badge.svg)](https://github.com/jpmml/jpmml-sklearn/actions?query=workflow%3A%22maven%22)\n=============\n\nJava library and command-line application for converting [Scikit-Learn](https://scikit-learn.org/) pipelines to PMML.\n\n# Table of Contents #\n\n* [Features](#features)\n  * [Overview](#overview)\n  * [Supported packages](#supported-packages)\n* [Prerequisites](#prerequisites)\n  * [The Python side of operations](#the-python-side-of-operations)\n  * [The JPMML-SkLearn side of operations](#the-jpmml-sklearn-side-of-operations)\n* [Installation](#installation)\n* [Usage](#usage)\n  * [The Python side of operations](#the-python-side-of-operations-1)\n  * [The JPMML-SkLearn side of operations](#the-jpmml-sklearn-side-of-operations-1)\n* [Documentation](#documentation)\n* [License](#license)\n* [Additional information](#additional-information)\n\n# Features #\n\n### Overview\n\n* Functionality:\n  * Three times more supported Python packages, transformers and estimators than all the competitors combined!\n  * Thorough collection, analysis and encoding of feature information:\n    * Names.\n    * Data and operational types.\n    * Valid, invalid and missing value spaces.\n    * Descriptive statistics.\n  * Pipeline extensions:\n    * Pruning.\n    * Decision engineering (prediction post-processing).\n    * Model verification.\n  * Conversion options.\n* Extensibility:\n  * Rich Java APIs for developing custom converters.\n  * Automatic discovery and registration of custom converters based on `META-INF/sklearn2pmml.properties` resource files.\n  * Direct interfacing with other JPMML conversion libraries such as [JPMML-H2O](https://github.com/jpmml/jpmml-h2o), [JPMML-LightGBM](https://github.com/jpmml/jpmml-lightgbm), [JPMML-StatsModels](https://github.com/jpmml/jpmml-statsmodels) and [JPMML-XGBoost](https://github.com/jpmml/jpmml-xgboost).\n* Production quality:\n  * Complete test coverage.\n  * Fully compliant with the [JPMML-Evaluator](https://github.com/jpmml/jpmml-evaluator) library.\n\n### Supported packages\n\nFor a full list of supported transformer and estimator classes see the [`features.md`](features.md) file.\n\n# Prerequisites #\n\n### The Python side of operations\n\n* Python 2.7, 3.4 or newer.\n* Scikit-Learn 0.16.0 or newer. This is not a typo - all Scikit-Learn version from the past 10 years (2015 or newer) should work equally fine.\n\n### The JPMML-SkLearn side of operations\n\n* Java 11 or newer.\n\n# Installation #\n\nEnter the project root directory and build using [Apache Maven](https://maven.apache.org/):\n\n```bash\nmvn clean install\n```\n\nThe build produces a library JAR file `pmml-sklearn/target/pmml-sklearn-1.9-SNAPSHOT.jar`, and an executable uber-JAR file `pmml-sklearn-example/target/pmml-sklearn-example-executable-1.9-SNAPSHOT.jar`.\n\n# Usage #\n\nA typical workflow can be summarized as follows:\n\n1. Use Scikit-Learn to assemble and fit a pipeline.\n2. Serialize this pipeline in `pickle` data format to a file in a local filesystem.\n3. Use the JPMML-SkLearn command-line application to convert this pickle file to a PMML file.\n\n### The Python side of operations\n\nAssembling and fitting a pipeline:\n\n```python\nfrom sklearn.compose import ColumnTransformer\nfrom sklearn.datasets import load_iris\n#from sklearn.decomposition import PCA\nfrom sklearn.linear_model import LogisticRegression\nfrom sklearn.pipeline import Pipeline\nfrom sklearn.preprocessing import StandardScaler\n\niris_X, iris_y = load_iris(return_X_y = True, as_frame = True)\niris_X.columns = [col.rstrip(\" (cm)\") for col in iris_X.columns]\n\npipeline = Pipeline([\n    # Column-oriented feature engineering\n    (\"transformer\", ColumnTransformer([\n        (\"scaler\", StandardScaler(), [0, 1, 2, 3])\n    ], remainder = \"drop\")),\n    # Table-oriented feature engineering\n    #(\"pca\", PCA(n_components = 3)),\n    # Final model\n    (\"classifier\", LogisticRegression())\n])\npipeline.fit(iris_X, iris_y)\n```\n\nSerializing the pipeline in Joblib-flavoured `pickle` data format:\n\n```python\nimport joblib\n\njoblib.dump(pipeline, \"pipeline.pkl\")\n```\n\nPlease see the test script file [main.py](https://github.com/jpmml/jpmml-sklearn/blob/master/pmml-sklearn/src/test/resources/main.py) for more classification (binary and multi-class) and regression workflows.\n\n### The JPMML-SkLearn side of operations\n\nConverting a pickle file to a PMML file:\n\n```bash\njava -jar pmml-sklearn-example/target/pmml-sklearn-example-executable-1.9-SNAPSHOT.jar --pkl-input pipeline.pkl --pmml-output pipeline.pmml\n```\n\nGetting help:\n\n```bash\njava -jar pmml-sklearn-example/target/pmml-sklearn-example-executable-1.9-SNAPSHOT.jar --help\n```\n\n# Documentation #\n\nIntegrations:\n\n* [Training Scikit-Learn GridSearchCV StatsModels pipelines](https://openscoring.io/blog/2023/10/15/sklearn_statsmodels_gridsearchcv_pipeline/)\n* [Converting Scikit-Learn H2O.ai pipelines to PMML](https://openscoring.io/blog/2023/07/17/converting_sklearn_h2o_pipeline_pmml/)\n* [Converting customized Scikit-Learn estimators to PMML](https://openscoring.io/blog/2023/05/03/converting_sklearn_subclass_pmml/)\n* [Training Scikit-Learn StatsModels pipelines](https://openscoring.io/blog/2023/03/28/sklearn_statsmodels_pipeline/)\n* [Upgrading Scikit-Learn XGBoost pipelines](https://openscoring.io/blog/2023/02/06/upgrading_sklearn_xgboost_pipeline_pmml/)\n* [Training Python-based XGBoost accelerated failure time models](https://openscoring.io/blog/2023/01/28/python_xgboost_aft_pmml/)\n* [Converting Scikit-Learn PyCaret 3 pipelines to PMML](https://openscoring.io/blog/2023/01/12/converting_sklearn_pycaret3_pipeline_pmml/)\n* [Training Scikit-Learn H2O.ai pipelines](https://openscoring.io/blog/2022/11/11/sklearn_h2o_pipeline/)\n* [One-hot encoding categorical features in Scikit-Learn XGBoost pipelines](https://openscoring.io/blog/2022/04/12/onehot_encoding_sklearn_xgboost_pipeline/)\n* [Training Scikit-Learn TF(-IDF) plus XGBoost pipelines](https://openscoring.io/blog/2021/02/27/sklearn_tf_tfidf_xgboost_pipeline/)\n* [Converting Scikit-Learn TF(-IDF) pipelines to PMML](https://openscoring.io/blog/2021/01/17/converting_sklearn_tf_tfidf_pipeline_pmml/)\n* [Converting Scikit-Learn Imbalanced-Learn pipelines to PMML](https://openscoring.io/blog/2020/10/24/converting_sklearn_imblearn_pipeline_pmml/)\n* [Converting logistic regression models to PMML](https://openscoring.io/blog/2020/01/19/converting_logistic_regression_pmml/#scikit-learn)\n* [Stacking Scikit-Learn, LightGBM and XGBoost models](https://openscoring.io/blog/2020/01/02/stacking_sklearn_lightgbm_xgboost/)\n* [Converting Scikit-Learn GridSearchCV pipelines to PMML](https://openscoring.io/blog/2019/12/25/converting_sklearn_gridsearchcv_pipeline_pmml/)\n* [Converting Scikit-Learn TPOT pipelines to PMML](https://openscoring.io/blog/2019/06/10/converting_sklearn_tpot_pipeline_pmml/)\n* [Converting Scikit-Learn LightGBM pipelines to PMML](https://openscoring.io/blog/2019/04/07/converting_sklearn_lightgbm_pipeline_pmml/)\n\nExtensions:\n\n* [Extending Scikit-Learn with feature cross-references](https://openscoring.io/blog/2023/11/25/sklearn_feature_cross_references/)\n* [Extending Scikit-Learn with UDF expression transformer](https://openscoring.io/blog/2023/03/09/sklearn_udf_expression_transformer/)\n* [Extending Scikit-Learn with CHAID models](https://openscoring.io/blog/2022/07/14/sklearn_chaid_pmml/)\n* [Extending Scikit-Learn with prediction post-processing](https://openscoring.io/blog/2022/05/06/sklearn_prediction_postprocessing/)\n* [Extending Scikit-Learn with outlier detector transformer](https://openscoring.io/blog/2021/07/16/sklearn_outlier_detector_transformer/)\n* [Extending Scikit-Learn with date and datetime features](https://openscoring.io/blog/2020/03/08/sklearn_date_datetime_pmml/)\n* [Extending Scikit-Learn with feature specifications](https://openscoring.io/blog/2020/02/23/sklearn_feature_specification_pmml/)\n* [Extending Scikit-Learn with GBDT+LR ensemble models](https://openscoring.io/blog/2019/06/19/sklearn_gbdt_lr_ensemble/)\n* [Extending Scikit-Learn with business rules model](https://openscoring.io/blog/2018/09/17/sklearn_business_rules/)\n\nMiscellaneous:\n\n* [Upgrading Scikit-Learn decision tree models](https://openscoring.io/blog/2023/12/29/upgrading_sklearn_decision_tree/)\n* [Measuring the memory consumption of Scikit-Learn models](https://openscoring.io/blog/2022/11/09/measuring_memory_sklearn/)\n* [Benchmarking Scikit-Learn against JPMML-Evaluator](https://openscoring.io/blog/2021/08/04/benchmarking_sklearn_jpmml_evaluator/)\n* [Analyzing Scikit-Learn feature importances via PMML](https://openscoring.io/blog/2021/07/11/analyzing_sklearn_feature_importances_pmml/)\n\nArchived:\n\n* [Converting Scikit-Learn to PMML](https://www.slideshare.net/VilluRuusmann/converting-scikitlearn-to-pmml)\n\n# License #\n\nJPMML-SkLearn is licensed under the terms and conditions of the [GNU Affero General Public License, Version 3.0](https://www.gnu.org/licenses/agpl-3.0.html).\n\nIf you would like to use JPMML-SkLearn in a proprietary software project, then it is possible to enter into a licensing agreement which makes JPMML-SkLearn available under the terms and conditions of the [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) instead.\n\n# Additional information #\n\nJPMML-SkLearn is developed and maintained by Openscoring Ltd, Estonia.\n\nInterested in using [Java PMML API](https://github.com/jpmml) software in your company? Please contact [info@openscoring.io](mailto:info@openscoring.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmml%2Fjpmml-sklearn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmml%2Fjpmml-sklearn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmml%2Fjpmml-sklearn/lists"}