Skip to content

Commit 205958c

Browse files
committed
resolving review comments
1 parent 55ecb11 commit 205958c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/PriorTrainerSample.cs

+2
Original file line numberDiff line numberDiff 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
}

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/RandomTrainerSample.cs

+2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)