8.2.7 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:
Evaluating the Supervised GraphWise Model Performance Using
JShell
opg4j> model.evaluateLabels(fullGraph, testVertices).print();
Evaluating the Supervised GraphWise Model Performance Using Java
model.evaluateLabels(fullGraph,testVertices).print();
Evaluating the Supervised GraphWise Model Performance Using
Python
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 |
+------------------------------------------+
Parent topic: Using the Supervised GraphWise Algorithm