Skip to content

Conversation

@kere-nel
Copy link
Contributor

@kere-nel kere-nel commented Jan 23, 2020

Also adding tests for OVA with FastForest, LinearSVM, and AveragedPerceptron.

@kere-nel kere-nel requested a review from a team as a code owner January 23, 2020 23:48
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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@kere-nel kere-nel requested a review from harishsk January 25, 2020 00:12
Copy link
Contributor

@harishsk harishsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@kere-nel kere-nel merged commit d85be83 into dotnet:master Jan 28, 2020
@codecov
Copy link

codecov bot commented Jan 28, 2020

Codecov Report

Merging #4698 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            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
Flag Coverage Δ
#Debug 75.83% <100%> (-0.01%) ⬇️
#production 71.44% <100%> (-0.01%) ⬇️
#test 90.49% <100%> (ø) ⬆️
Impacted Files Coverage Δ
...StandardTrainers/Standard/LinearModelParameters.cs 66.24% <100%> (ø) ⬆️
test/Microsoft.ML.Tests/OnnxConversionTest.cs 97.9% <100%> (+0.02%) ⬆️
...rd/MulticlassClassification/OneVersusAllTrainer.cs 81.93% <100%> (+0.13%) ⬆️
src/Microsoft.ML.FastTree/FastTree.cs 80.66% <100%> (ø) ⬆️
...c/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs 79.48% <0%> (-20.52%) ⬇️
....ML.AutoML/PipelineSuggesters/PipelineSuggester.cs 83.19% <0%> (-3.37%) ⬇️
src/Microsoft.ML.Maml/MAML.cs 24.75% <0%> (-1.46%) ⬇️
src/Microsoft.ML.AutoML/Sweepers/Parameters.cs 84.32% <0%> (-0.85%) ⬇️
...soft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs 85.11% <0%> (-0.21%) ⬇️
src/Microsoft.ML.Transforms/Text/LdaTransform.cs 85.03% <0%> (-0.16%) ⬇️
... and 2 more

@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants