Introduction
WinMLTools enables you to convert models from different machine learning toolkits into ONNX for use with Windows Machine Learning. Currently the following toolkits are supported:
Apple CoreML
scikit-learn (subset of models convertible to ONNX)
LibSVM
XGBoost
Install
pip install winmltools
Dependancies
This converter package extends the functionalities of ONNXMLTools.
scikit-learn is needed to convert a scikit-learn model, coremltools for Apple CoreML.
Example
Here is a simple example to convert a CoreML model:
import winmltools
import coremltools
model_coreml = coremltools.utils.load_spec("image_recognition.mlmodel")
model_onnx = winmltools.convert.convert_coreml(model_coreml, "Image_Reco")
# Save as text
winmltools.utils.save_text(model_onnx, "image_recognition.json")
# Save as protobuf
winmltools.utils.save_model(model_onnx, "image_recognition.onnx")
License
MIT License
Metadata
Release files for winmltools 0.1.0.5072
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| winmltools-0.1.0.5072-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for winmltools-0.1.0.5072-py2.py3-none-any.whl |
Release files / winmltools-0.1.0.5072-py2.py3-none-any.whl
| Download URL | winmltools-0.1.0.5072-py2.py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c7960d9b59bffc46c9f744cf3933b4663d8d811ed87e888eb0d6bf959fea82bc
|
|
BLAKE2b-256 checksum How to use checksums |
b972696567cb073132ada1dec96fb615f8c8117ab6114dd18f010ccd2529d325
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for winmltools 0.1.0.5072
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.