-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix for OneVersusAll Multiclass trainer #4698
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
Conversation
| Host.Check(Utils.Size(outputs) >= 1); | ||
| string opType = "LinearRegressor"; | ||
| string scoreVarName = (Utils.Size(outputs) == 2) ? outputs[1] : outputs[0]; // Get Score from PredictedLabel and/or Score columns | ||
| string scoreVarName = (Utils.Size(outputs) >= 2) ? outputs[1] : outputs[0]; // Get Score from PredictedLabel and/or Score columns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What cases result in the output size being greater than 2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a calibrator is used, the probability column is added. More specifically, the OVA trainer always creates a probability output column, so the output count will be 3. An alternative would be to distinguish between trainers that need the probability column and those that don't inside OVA, but I think that would be more involved.
harishsk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
Codecov Report
@@ Coverage Diff @@
## master #4698 +/- ##
==========================================
- Coverage 75.84% 75.83% -0.01%
==========================================
Files 951 951
Lines 172594 172613 +19
Branches 18632 18632
==========================================
+ Hits 130896 130904 +8
- Misses 36523 36529 +6
- Partials 5175 5180 +5
|
Also adding tests for OVA with FastForest, LinearSVM, and AveragedPerceptron.