-
Notifications
You must be signed in to change notification settings - Fork 1.9k
MetaMulticlassTrainer throws an exception when used in an estimator chain #1969
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
Hi @daholste , thank you for reporting this issue. The underlying values of a key type are of type U4, however, this type is not identical to the numeric U4 type, which is the type you get by changing the TextLoader column definition to DataKind.U4. So there are two issues here:
As a workaround until the second issue is fixed, you can add a ValueToKeyMappingEstimator (applied to the Label column) to your estimator chain right before the OVA estimator. This will convert the R4 Label column to a key type. |
Thank you a lot for the info & workaround! Any chance you would be able to prioritize this fix to ship in your next release? |
this seems to have been fixed already. @daholste if this is still an issue please reopen. |
Issue
Setup code:
Code that succeeds:
Code for a dummy estimator chain that fails:
This fails b/c of
in the MetaMulticlassTrainer class, which expects label column to be U4, not R4.
If I try to fix by changing the data type of Label column to U4, the code that used to succeed fails with the exception:
in TrainerUtils.CheckMultiClassLabel
The text was updated successfully, but these errors were encountered: