Skip to content

Commit 20d6660

Browse files
author
Harshitha Parnandi Venkata
committed
removed unnecessary commits
1 parent 3c82762 commit 20d6660

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

docs/samples/Microsoft.ML.Samples/Dynamic/ImageClassification/ResnetV2101TransferLearningEarlyStopping.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,7 @@ public static void Example()
5757

5858
IDataView trainDataset = trainTestData.TrainSet;
5959
IDataView testDataset = trainTestData.TestSet;
60-
/*
61-
var pipeline = mlContext.Model.ImageClassification(
62-
"ImagePath", "Label",
63-
// Just by changing/selecting InceptionV3 here instead of
64-
// ResnetV2101 you can try a different architecture/pre-trained
65-
// model.
66-
arch: ImageClassificationEstimator.Architecture.ResnetV2101,
67-
batchSize: 10,
68-
learningRate: 0.01f,
69-
earlyStopping: new ImageClassificationEstimator.EarlyStopping(minDelta: 0.001f, patience:20, metric:ImageClassificationEstimator.EarlyStoppingMetric.Loss),
70-
metricsCallback: (metrics) => Console.WriteLine(metrics),
71-
validationSet: testDataset);*/
60+
7261
var validationSet = mlContext.Transforms.LoadImages("Image", fullImagesetFolderPath, false, "ImagePath") // false indicates we want the image as a VBuffer<byte>
7362
.Fit(testDataset)
7463
.Transform(testDataset);

0 commit comments

Comments
 (0)