-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot fit an Onnx Transform as part of a pipeline #2981
Labels
bug
Something isn't working
Comments
Must be related to #2982, that the type changes when passed through ONNX. |
Based on #2982 and #2980, I was able to get this to work by specifying a custom score class:
@rogancarr - I will post a PR with the changes and then close these three issues. |
singlis
added a commit
to singlis/machinelearning
that referenced
this issue
Apr 9, 2019
Score column being named "Score0". The ONNX model will rename the output columns by design, therefore a different class with the ColumnName of "Score0" is needed. This fixes the test pipeline to address this issue. Fixes dotnet#2981
Merged
@rogancarr - sorry I misunderstood the bug. I see what you are describing and will post a fix. |
singlis
added a commit
that referenced
this issue
Apr 18, 2019
Fixes #2981 * When adding an ONNX transform to an ML.NET pipeline, an exception would occur if the input type was not a variable vector or vector type. This is not needed as we do support converting basic types to equivalent ONNX tensor type. Therefore the check was modified to throw if the type is a variable vector.
ghost
locked as resolved and limited conversation to collaborators
Mar 23, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It is possible to fit an ONNX model by itself:
But it throws when it is part of a pipeline:
Any of these
Append
statements cause a throw. They do not affect the ONNX model at all, and use either the result of the calculation (Score0
), rows unused by the model (Label
) or rows also used by the transform (Features
).In this case, the error message is:
System.ArgumentOutOfRangeException : Schema mismatch for input column 'Label': expected vector, got R4 Parameter name: inputSchema
The text was updated successfully, but these errors were encountered: