module npy.numpy_onnx_impl_skl#

Short summary#

module mlprodict.npy.numpy_onnx_impl_skl

numpy functions implemented with onnx.

Functions#

function

truncated documentation

classifier

Returns any classifier from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. …

cluster

Returns any cluster from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. …

linear_regression

Returns a linear regression converted into ONNX.

logistic_regression

Returns a logistic regression converted into ONNX, option zipmap is set to false.

regressor

Returns any regressor from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. …

transformer

Returns any transformer from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. …

Documentation#

numpy functions implemented with onnx.

New in version 0.6.

source on GitHub

mlprodict.npy.numpy_onnx_impl_skl.classifier(x, *, model=None)#

Returns any classifier from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. Option zipmap is set to false.

Parameters:
  • x – array, variable name, instance of OnnxVar

  • model – instance of a classifier

Returns:

instance of MultiOnnxVar, first output is labels, second one is the probabilities

source on GitHub

mlprodict.npy.numpy_onnx_impl_skl.cluster(x, *, model=None)#

Returns any cluster from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. Option zipmap is set to false.

Parameters:
  • x – array, variable name, instance of OnnxVar

  • model – instance of a cluster

Returns:

instance of MultiOnnxVar, first output is labels, second one is the probabilities

source on GitHub

mlprodict.npy.numpy_onnx_impl_skl.linear_regression(x, *, model=None)#

Returns a linear regression converted into ONNX.

Parameters:
Returns:

instance of OnnxVar

source on GitHub

mlprodict.npy.numpy_onnx_impl_skl.logistic_regression(x, *, model=None)#

Returns a logistic regression converted into ONNX, option zipmap is set to false.

Parameters:
Returns:

instance of MultiOnnxVar, first output is labels, second one is the probabilities

source on GitHub

mlprodict.npy.numpy_onnx_impl_skl.regressor(x, *, model=None)#

Returns any regressor from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx.

Parameters:
  • x – array, variable name, instance of OnnxVar

  • model – instance of a regressor

Returns:

instance of OnnxVar

source on GitHub

mlprodict.npy.numpy_onnx_impl_skl.transformer(x, *, model=None)#

Returns any transformer from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx.

Parameters:
  • x – array, variable name, instance of OnnxVar

  • model – instance of a transformer

Returns:

instance of OnnxVar

source on GitHub