export_pipeline_to_onnx
Trained scikit-learn pipeline to export. Should contain preprocessing steps and model
File path where the ONNX model will be saved. Parent directories will be created if they don’t exist
Number of input features expected by the pipeline
Trueif export was successfulFalseif an exception occurred during export
Dependencies
This function requires the following packages:skl2onnx: For converting scikit-learn models to ONNXonnx: ONNX runtime dependencies
Example
Use Cases
- Cross-Platform Deployment: Deploy models to various platforms (web, mobile, embedded)
- Performance Optimization: Use ONNX Runtime for faster inference
- Framework Interoperability: Run scikit-learn models in non-Python environments
- Model Serving: Deploy models to production inference servers