-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Polish train catalog (renaming only) #3030
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
Codecov Report
@@ Coverage Diff @@
## master #3030 +/- ##
==========================================
+ Coverage 72.48% 72.48% +<.01%
==========================================
Files 804 804
Lines 144077 144078 +1
Branches 16179 16179
==========================================
+ Hits 104434 104438 +4
+ Misses 35228 35223 -5
- Partials 4415 4417 +2
|
1599657
to
6ee8a49
Compare
Did you check the RecommenderCatalog? I think it's on a separate file. #Resolved |
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.
@@ -484,21 +484,21 @@ internal MulticlassClassificationTrainers(MulticlassClassificationCatalog catalo | |||
/// <param name="labelColumnName">The name of the label column in <paramref name="data"/>.</param> | |||
/// <param name="scoreColumnName">The name of the score column in <paramref name="data"/>.</param> | |||
/// <param name="predictedLabelColumnName">The name of the predicted label column in <paramref name="data"/>.</param> | |||
/// <param name="topK">If given a positive value, the <see cref="MulticlassClassificationMetrics.TopKAccuracy"/> will be filled with | |||
/// <param name="topPredictionCount">If given a positive value, the <see cref="MulticlassClassificationMetrics.TopKAccuracy"/> will be filled with |
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.
If given a positive value [](start = 45, length = 25)
it seems the existing behavior is to just ignore negative values. is that correct ? should we raise an exception if user gives a negative value #Resolved
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.
No problem. We throw now. #Resolved
@@ -484,21 +484,21 @@ internal MulticlassClassificationTrainers(MulticlassClassificationCatalog catalo | |||
/// <param name="labelColumnName">The name of the label column in <paramref name="data"/>.</param> | |||
/// <param name="scoreColumnName">The name of the score column in <paramref name="data"/>.</param> | |||
/// <param name="predictedLabelColumnName">The name of the predicted label column in <paramref name="data"/>.</param> | |||
/// <param name="topK">If given a positive value, the <see cref="MulticlassClassificationMetrics.TopKAccuracy"/> will be filled with | |||
/// <param name="topPredictionCount">If given a positive value, the <see cref="MulticlassClassificationMetrics.TopKAccuracy"/> will be filled with |
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.
Did you also rename TopKAccuracy
? If we make this change, we won't have parallelism with the evaluation metrics. #Resolved
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.
We don't need to. TopKAccuracy
is as good as Accuracy
. This original topK
is a parameter when computing TopKAccuracy
, not TopKAccuracy
itself. #Resolved
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.
Discussed offline. We will do topKPredictionCount
to associate it with TopKAccuracy
. #Resolved
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.
🎈
@@ -30,7 +30,7 @@ public void RandomizedPcaTrainerBaselineTest() | |||
var transformedData = DetectAnomalyInMnistOneClass(trainPath, testPath); | |||
|
|||
// Evaluate | |||
var metrics = ML.AnomalyDetection.Evaluate(transformedData, k: 5); | |||
var metrics = ML.AnomalyDetection.Evaluate(transformedData, falsePositiveCount: 5); |
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.
falsePositiveCount [](start = 72, length = 18)
AnomalyDetectionMetrics
has DetectionRateAtKFalsePositives
If you remove K
from here, I think you need to remove K
from metric class as well. #Resolved
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.
/// the top-K accuracy, that is, the accuracy assuming we consider an example with the correct class within | ||
/// the top-K values as being stored "correctly."</param> | ||
/// <returns>The evaluation results for these calibrated outputs.</returns> | ||
public MulticlassClassificationMetrics Evaluate(IDataView data, string labelColumnName = DefaultColumnNames.Label, string scoreColumnName = DefaultColumnNames.Score, | ||
string predictedLabelColumnName = DefaultColumnNames.PredictedLabel, int topK = 0) | ||
string predictedLabelColumnName = DefaultColumnNames.PredictedLabel, int topKPredictionCount = 0) |
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.
topKPredictionCount [](start = 85, length = 19)
Can we align it with MulticlassClassificationMetrics
class?
/// <summary>
/// If positive, this is the top-K for which the <see cref="TopKAccuracy"/> is calculated.
/// </summary>
public int TopK { get; }
``` #Resolved
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.
Yes, it looks good. In reply to: 474958115 [](ancestors = 474958115) |
Related to #3029 (for StandardTrainersCatalog.cs) but for TrainCatalog.cs.
topK
totopPredictionCount
k
tofalsePositiveCount