You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/csharp/getting-started/BinaryClassification_SentimentAnalysis/SentimentAnalysis/SentimentAnalysisConsoleApp/Program.cs
-10Lines changed: 0 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,10 @@ internal static class Program
21
21
22
22
staticvoidMain(string[]args)
23
23
{
24
-
#region try
25
24
// Create MLContext to be shared across the model creation workflow objects
26
25
// Set a random seed for repeatable/deterministic results across multiple trainings.
Console.WriteLine($"=============== Single Prediction ===============");
75
66
Console.WriteLine($"Text: {sampleStatement.Text} | Prediction: {(Convert.ToBoolean(resultprediction.Prediction)?"Toxic":"Non Toxic")} sentiment | Probability of being toxic: {resultprediction.Probability} ");
76
67
Console.WriteLine($"================End of Process.Hit any key to exit==================================");
0 commit comments