File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
docs/samples/Microsoft.ML.Samples/Dynamic/Trainers Expand file tree Collapse file tree 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()
5858 // Step 5: Inspect the output
5959 Console . WriteLine ( "Accuracy: " + evalMetrics . Accuracy ) ;
6060
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.
6163 // Expected output:
6264 // Accuracy: 0.647058823529412
6365 }
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ public static void Example()
5858 // Step 5: Inspect the output
5959 Console . WriteLine ( "Accuracy: " + evalMetrics . Accuracy ) ;
6060
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.
6163 // Expected output (close to 0.5):
6264 // Accuracy: 0.588235294117647
6365 }
You can’t perform that action at this time.
0 commit comments