forked from microsoft/CNTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Do early stopping
Nikos Karampatziakis edited this page Sep 20, 2016
·
3 revisions
To do early stopping you have to train until the end and then pick the checkpoint that is performing the best on a validation set. To do this include the cv action in your config
command=TrainModel:EvaluateCheckpoints
...
EvaluateCheckpoints = {
action = "cv"
reader = {
file = $myValidationSet$
#rest of the options same as the "test" reader
...
}
crossValidationInterval = 3:2:9 # evaluate epochs 3 to 9 with a step of 2 i.e. 3,5,7,9
sleepTimeBetweenRuns = 0 # let the GPU cool off for this many seconds
#rest of the options same as the "test" action
...
}
The cv command will print the best model on the validation set. Then you can evaluate that model in your test action on the final test set.
Getting Started
Additional Documentation
How to use CNTK
Using CNTK Models in Your Code
- Overview
- Nuget Package for Evaluation
- C++ Evaluation Interface
- C# Evaluation Interface
- Evaluating Hidden Layers
- C# Image Transforms for Evaluation
- C# Multi-model Evaluation
- Evaluate in Azure
Advanced topics
Licenses
Source Code & Development