-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Defaults for ImageClassification API #4415
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
Conversation
…s been update to show how to get the output to console from the log.
740a6fc to
47ac5cd
Compare
| //Download the image set and unzip | ||
| string finalImagesFolderName = DownloadImageSet( | ||
| imagesDownloadFolderPath); | ||
| //string finalImagesFolderName = "flower_photos"; |
There was a problem hiding this comment.
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
|
|
||
| var pipeline = mlContext.MulticlassClassification.Trainers | ||
| .ImageClassification(featureColumnName:"Image", validationSet:testDataset) | ||
| .ImageClassification(featureColumnName:"Image", validationSet:null) |
There was a problem hiding this comment.
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
| options.ValidationSetBottleneckCachedValuesFileName = _options.ValidationSetBottleneckCachedValuesFileName; | ||
| } | ||
|
|
||
| if ( options.MetricsCallback == null ) |
There was a problem hiding this comment.
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
| options.ValidationSetBottleneckCachedValuesFileName = _options.ValidationSetBottleneckCachedValuesFileName; | ||
| } | ||
|
|
||
| if ( options.MetricsCallback == null ) |
There was a problem hiding this comment.
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
codemzs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
* 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.
* 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.
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.