Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults for ImageClassification API #4415

Merged
merged 7 commits into from
Nov 1, 2019

Conversation

harshithapv
Copy link
Contributor

@harshithapv harshithapv commented Oct 30, 2019

Changed EarlyStopping to run by default with ExponentialLR Decay for learning rate scheduling.
This combination seems to give most optimal results with a trade-off balance between the accuracy and training time.

@codemzs codemzs marked this pull request as ready for review November 1, 2019 20:43
@codemzs codemzs requested a review from a team as a code owner November 1, 2019 20:43
@@ -29,13 +29,15 @@ public static void Example()
//Download the image set and unzip
string finalImagesFolderName = DownloadImageSet(
imagesDownloadFolderPath);
//string finalImagesFolderName = "flower_photos";
Copy link
Member

@codemzs codemzs Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//string finalImagesFolderName = "flower_photos"; [](start = 12, length = 49)

remove #Closed

@@ -60,7 +62,7 @@ public static void Example()
IDataView testDataset = trainTestData.TestSet;

var pipeline = mlContext.MulticlassClassification.Trainers
.ImageClassification(featureColumnName:"Image", validationSet:testDataset)
.ImageClassification(featureColumnName:"Image", validationSet:null)
Copy link
Member

@codemzs codemzs Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, validationSet:null [](start = 70, length = 20)

no need, default is null. #Resolved

@@ -532,6 +532,12 @@ internal ImageClassificationTrainer(IHostEnvironment env, Options options)
options.ValidationSetBottleneckCachedValuesFileName = _options.ValidationSetBottleneckCachedValuesFileName;
}

if ( options.MetricsCallback == null )
Copy link
Member

@codemzs codemzs Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[](start = 16, length = 1)

space #Closed

@@ -532,6 +532,12 @@ internal ImageClassificationTrainer(IHostEnvironment env, Options options)
options.ValidationSetBottleneckCachedValuesFileName = _options.ValidationSetBottleneckCachedValuesFileName;
}

if ( options.MetricsCallback == null )
Copy link
Member

@codemzs codemzs Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[](start = 48, length = 1)

space #Closed

Copy link
Member

@codemzs codemzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@codemzs codemzs merged commit b9c68bf into dotnet:master Nov 1, 2019
frank-dong-ms-zz pushed a commit to frank-dong-ms-zz/machinelearning that referenced this pull request Nov 4, 2019
* Changed some defaults

* Changed metrics callback default

* metricsCallback will write to mlcontext log by default. The sample has been update to show how to get the output to console from the log.

* deleted unnecessary comments

* Addressed comments

* Minor clean up.

* Disable unstable test.
frank-dong-ms-zz pushed a commit to frank-dong-ms-zz/machinelearning that referenced this pull request Nov 4, 2019
* Changed some defaults

* Changed metrics callback default

* metricsCallback will write to mlcontext log by default. The sample has been update to show how to get the output to console from the log.

* deleted unnecessary comments

* Addressed comments

* Minor clean up.

* Disable unstable test.
@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants