module npy.numpy_onnx_impl_skl
#
Short summary#
module mlprodict.npy.numpy_onnx_impl_skl
Functions#
function |
truncated documentation |
---|---|
Returns any classifier from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. … |
|
Returns any cluster from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. … |
|
Returns a linear regression converted into ONNX. |
|
Returns a logistic regression converted into ONNX, option zipmap is set to false. |
|
Returns any regressor from scikit-learn converted into ONNX assuming a converter is registered with sklearn-onnx. … |
|
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.
- 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
- 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
- mlprodict.npy.numpy_onnx_impl_skl.linear_regression(x, *, model=None)#
Returns a linear regression converted into ONNX.
- Parameters:
x – array, variable name, instance of
OnnxVar
model – instance of sklearn.linear_model.LinearRegression
- Returns:
instance of
OnnxVar
- 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:
x – array, variable name, instance of
OnnxVar
model – instance of sklearn.linear_model.LinearRegression
- Returns:
instance of
MultiOnnxVar
, first output is labels, second one is the probabilities
- 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.
- 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.