Exactly, have a look to the state of the art posts here 5. The thing is to find the metric that will indicates if your training is good and minimize this value. You can apply these concepts to your problem.