This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
ONNX models dont run for Handler, Indicator & others #426
Closed
Description
Repro script:
`
from nimbusml.datasets import get_dataset
from nimbusml.preprocessing import OnnxRunner
from nimbusml.preprocessing.missing_values import Handler
iris_df = get_dataset("iris").as_df()
nahandle = Handler(replace_with='Mean') << {'NewVals': 'Sepal_Length'}
nahandle.fit(iris_df)
nahandle.export_to_onnx("test.onnx", 'com.microsoft.ml')
onnx_runner = OnnxRunner(model_file="test.onnx")
onnx_runner.fit_transform(iris_df)
`
Error: *** System.ArgumentOutOfRangeException: 'Schema mismatch for input column 'Label': expected UInt32, got Key<UInt32, 0-2>
Same happens for Indicator, MeanVarianceScaler, MinMaxScaler, LpScaler, ToKey, etc.
Metadata
Metadata
Assignees
Labels
No labels