Skip to content

Commit 6257cf0

Browse files
codemzseerhardt
authored andcommitted
Remove stale line of code from test. (dotnet#297)
1 parent 74ec5c9 commit 6257cf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void TrainAndPredictSentimentModelTest()
2727
var model = pipeline.Train<SentimentData, SentimentPrediction>();
2828
var testData = PrepareTextLoaderTestData();
2929
var evaluator = new BinaryClassificationEvaluator();
30-
BinaryClassificationMetrics metrics = evaluator.Evaluate(model, testData);
30+
var metrics = evaluator.Evaluate(model, testData);
3131
ValidateExamples(model);
3232
ValidateBinaryMetrics(metrics);
3333
}
@@ -36,7 +36,6 @@ public void TrainAndPredictSentimentModelTest()
3636
public void TrainTestPredictSentimentModelTest()
3737
{
3838
var pipeline = PreparePipeline();
39-
PredictionModel<SentimentData, SentimentPrediction> model = pipeline.Train<SentimentData, SentimentPrediction>();
4039
var testData = PrepareTextLoaderTestData();
4140
var tt = new TrainTestEvaluator().TrainTestEvaluate<SentimentData, SentimentPrediction>(pipeline, testData);
4241

0 commit comments

Comments
 (0)