SkillAgentSearch skills...

Nyoka

Nyoka is a Python library that helps to export ML models into PMML (PMML 4.4.1 Standard).

Install / Use

/learn @SoftwareAG/Nyoka

README

Nyoka

Test Master Branch PyPI version codecov license Python <img src="https://raw.githubusercontent.com/softwareag/nyoka/master/docs/nyoka_logo.PNG" alt="nyoka_logo" height="200" style="float:right"/>

Overview

Nyoka is a Python library for comprehensive support of the latest PMML (PMML 4.4) standard. Using Nyoka, Data Scientists can export a large number of Machine Learning models from popular Python frameworks into PMML by either using any of the numerous included ready-to-use exporters or by creating their own exporter for specialized/individual model types by simply calling a sequence of constructors.

Besides about 500 Python classes which each cover a PMML tag and all constructor parameters/attributes as defined in the standard, Nyoka also provides an increasing number of convenience classes and functions that make the Data Scientist’s life easier for example by reading or writing any PMML file in one line of code from within your favorite Python environment.

Nyoka comes to you with the complete source code in Python, extended HTML documentation for the classes/functions, and a growing number of Jupyter Notebook tutorials that help you familiarize yourself with the way Nyoka supports you in using PMML as your favorite Data Science transport file format.

Read the documentation at Nyoka Documentation.

List of libraries and models supported by Nyoka :

Scikit-Learn (version <= 1.3.0):

Models -

Pre-Processing -

LightGBM:

XGBoost (version <= 1.7.6):

Statsmodels (version <= 0.14.0):

Prerequisites

  • Python >= 3.6

Dependencies

nyoka requires:

  • lxml

Installation

You can install nyoka using:

pip install --upgrade nyoka

Usage

Nyoka contains seperate exporters for each library, e.g., scikit-learn, keras, xgboost etc.

| library | exporter | |--|--| | scikit-learn | skl_to_pmml | | xgboost | xgboost_to_pmml | | lightgbm | lgbm_to_pmml | | statsmodels | StatsmodelsToPmml & ExponentialSmoothingToPmml |

Note - The support of keras is until 4.4.0 release of Nyoka.

The main module of Nyoka is nyoka. To use it for your model, you need to import the specific exporter from nyoka as -

from nyoka import skl_to_pmml, lgb_to_pmml #... so on

Note - If scikit-learn,

View on GitHub
GitHub Stars190
CategoryEducation
Updated13d ago
Forks44

Languages

Python

Security Score

100/100

Audited on Mar 26, 2026

No findings