From 7dcd38a5e993b142d861434cec93a8022195382e Mon Sep 17 00:00:00 2001 From: Zeeshan Siddiqui Date: Mon, 4 Jun 2018 14:09:30 -0700 Subject: [PATCH 1/2] cleanup. --- test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs b/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs index 701864c577..335667952b 100644 --- a/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs +++ b/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs @@ -36,7 +36,6 @@ public void TrainAndPredictSentimentModelTest() public void TrainTestPredictSentimentModelTest() { var pipeline = PreparePipeline(); - PredictionModel model = pipeline.Train(); var testData = PrepareTextLoaderTestData(); var tt = new TrainTestEvaluator().TrainTestEvaluate(pipeline, testData); From 401e2db7a3136bb752bf8641424c0782bf4b1255 Mon Sep 17 00:00:00 2001 From: Zeeshan Siddiqui Date: Mon, 4 Jun 2018 14:25:41 -0700 Subject: [PATCH 2/2] PR feedback. --- test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs b/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs index 335667952b..7a31f17d96 100644 --- a/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs +++ b/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs @@ -27,7 +27,7 @@ public void TrainAndPredictSentimentModelTest() var model = pipeline.Train(); var testData = PrepareTextLoaderTestData(); var evaluator = new BinaryClassificationEvaluator(); - BinaryClassificationMetrics metrics = evaluator.Evaluate(model, testData); + var metrics = evaluator.Evaluate(model, testData); ValidateExamples(model); ValidateBinaryMetrics(metrics); }