onnx/onnxmltools
ONNXMLTools enables conversion of models to ONNX
What it solves
ONNXMLTools enables interoperability between various machine learning toolkits and the Open Neural Network Exchange (ONNX) format. It allows developers to take models trained in popular libraries—such as LightGBM, XGBoost, CatBoost, and H2O—and convert them into a standardized format that can be run across different platforms and runtimes.
How it works
The library provides specific conversion functions for each supported toolkit. You provide the trained model object (or file path) and define the input types (the shape and data type of the expected input data). The tool then translates the model into an onnx.ModelProto object, which can be saved to disk or loaded directly into an inference engine like ONNX Runtime for prediction.
Who it’s for
This tool is designed for data scientists and machine learning engineers who need to deploy models trained in specific frameworks into production environments that require the ONNX standard for compatibility or performance.
Highlights
- Supports a wide range of frameworks including LightGBM, XGBoost, CatBoost, Apple Core ML, H2O, libsvm, and Spark ML.
- Integrates with scikit-learn and TensorFlow/Keras via dedicated wrapper projects.
- Allows users to specify a
target_opsetto ensure the converted model remains compatible with older ONNX runtimes. - Enables validation by comparing the predictions of the original model against the converted ONNX model using ONNX Runtime.
Related
- Project
- Project
- Project
- Project
- Project