17.7.5 Getting the Loss Value For a Pg2vec Model
You can fetch the training loss value on a specified fraction of training data (set in builder using setValidationFraction
) as described in the following code:
opg4j> var loss = model.getLoss()
double loss = model.getLoss();
loss = model.loss
Parent topic: Using the Pg2vec Algorithm