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