python-crfsuite icon indicating copy to clipboard operation
python-crfsuite copied to clipboard

Get loss value(s) during training

Open usptact opened this issue 10 years ago • 1 comments

I would like to use a hyperparameter search algorithm to find the best hyperparameters (L1 and L2). For this I think the last loss value reported by the training algorithm can be useful.

Is there a way to get the last loss value computed during training?

usptact avatar Jun 11 '15 17:06 usptact

Hey @usptact,

Trainer parses the log on-the-fly using _TrainLogParser object. It should be possible to access loss values using trainer.logparser.iterations[i]['loss'].

kmike avatar Jul 28 '15 07:07 kmike