-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Exception when converting PredictedLabel from Key To Value #3090
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
Comments
The problem here is that the Annotations are not carried from the Label column to the PredictedLabel column. |
@Ivanidzo4ka @shauheen |
I also hit this issue during the bug bash in upgrading _pipeline = MLContext.Transforms.Conversion.MapValueToKey("Label")
.Append(MLContext.Transforms.Text.FeaturizeText("Features", "Text"))
// Main algorithm
// .Append(MLContext.MulticlassClassification.Trainers.StochasticDualCoordinateAscent())
// or
.Append(MLContext.MulticlassClassification.Trainers.LogisticRegression())
// or
// .Append(MLContext.MulticlassClassification.Trainers.NaiveBayes()) // yields weird metrics...
// Convert the predicted value back into a language.
.Append(MLContext.Transforms.Conversion.MapKeyToValue("PredictedLabel")); This doesn't appear to be OVA specific. |
Currently blocked by: dotnet/machinelearning#3090 dotnet/machinelearning#3119 Also found: dotnet/machinelearning#3109, which requires the usage of the Microsoft.ML.Experimental nuget package to using a binning normalizer.
Still reproducible in ML.NET 1.4
|
Uh oh!
There was an error while loading. Please reload this page.
When trying to convert the output PredictedLabel from key back to value, the exception
is thrown.
Code to repro:
Replace
C:\MLDotNet2\
with path to ML.NET repo on your local machineThe text was updated successfully, but these errors were encountered: