17.2.11 Evaluating the Supervised GraphWise Model Performance
You can evaluate various classification metrics for the model using the evaluateLabels
method as described in the following code:
opg4j> model.evaluateLabels(fullGraph, testVertices).print()
model.evaluateLabels(fullGraph,testVertices).print();
model.evaluate_labels(full_graph, test_vertices).print()
The output will be similar to the following example
output:
+------------------------------------------+
| Accuracy | Precision | Recall | F1-Score |
+------------------------------------------+
| 0.8488 | 0.8523 | 0.831 | 0.8367 |
+------------------------------------------+