Skip to main content

Scikit-learn wrapper of onnxruntime

Project description

scikit-onnxruntime wraps onnxruntime with scikit-learn API.

with open("rf_iris.onnx", "rb") as f:
    content = f.read()

ot = OnnxTransformer(content, output_name="output_probability")
ot.fit(X_train, y_train)

print(ot.transform(X_test[:5]))

Documentation

Full documentation including tutorials is available at xadupre.github.io.

You may also find answers in existing issues or submit a new one.

Installation

You can install from PyPi:

pip install skonnxrt

Or you can install from the source with the latest changes:

pip install git+https://github.com/xadupre/scikit-onnxruntime.git

Contribute

We welcome contributions in the form of feedback, ideas, or code.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scikit-onnxruntime, version 0.2.1.4
Filename, size File type Python version Upload date Hashes
Filename, size scikit_onnxruntime-0.2.1.4-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version 3.7 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page