8.4.4 Training a Pg2vec Model
You can train a Pg2vec model with the specified default or customized settings as described in the following code:
Training a Pg2vec Model Using
JShell
opg4j> model.fit(graph);
Training a Pg2vec Model Using Java
model.fit(graph);
Training a Pg2vec Model Using Python
model.fit(graph)
Parent topic: Using the Pg2vec Algorithm