Skip to content

Commit 41ba426

Browse files
authored
Fix runtime exception in Prior trainer sample and update the sample output in comments. (#3295)
1 parent a602476 commit 41ba426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static void Example()
2626
var loader = mlContext.Data.CreateTextLoader(
2727
columns: new[]
2828
{
29-
new TextLoader.Column("Sentiment", DataKind.Single, 0),
29+
new TextLoader.Column("Sentiment", DataKind.Boolean, 0),
3030
new TextLoader.Column("SentimentText", DataKind.String, 1)
3131
},
3232
hasHeader: true
@@ -63,7 +63,7 @@ public static void Example()
6363
// Positive Precision: 0.50
6464
// Positive Recall: 1.00
6565
// LogLoss: 1.05
66-
// LogLossReduction: -4.89
66+
// LogLossReduction: -0.05
6767
// Entropy: 1.00
6868
}
6969
}

0 commit comments

Comments
 (0)