File tree 2 files changed +4
-0
lines changed
docs/samples/Microsoft.ML.Samples/Dynamic/Trainers
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ public static void Example()
58
58
// Step 5: Inspect the output
59
59
Console . WriteLine ( "Accuracy: " + evalMetrics . Accuracy ) ;
60
60
61
+ // The Prior trainer outputs the proportion of a label in the dataset as the probability of that label.
62
+ // In this case it means that there is a split of around 64%-36% of positive and negative labels in the dataset.
61
63
// Expected output:
62
64
// Accuracy: 0.647058823529412
63
65
}
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ public static void Example()
58
58
// Step 5: Inspect the output
59
59
Console . WriteLine ( "Accuracy: " + evalMetrics . Accuracy ) ;
60
60
61
+ // We expect an output probability closet to 0.5 as the Random trainer outputs a random prediction.
62
+ // Regardless of the input features, the trainer will predict either positive or negative label with equal probability.
61
63
// Expected output (close to 0.5):
62
64
// Accuracy: 0.588235294117647
63
65
}
You can’t perform that action at this time.
0 commit comments