8.2.7 Supervised GraphWiseモデルのパフォーマンスの評価
次のコードに示すように、evaluateLabels
メソッドを使用して、モデルの様々な分類メトリックを評価できます。
JShellを使用したSupervised GraphWiseモデルのパフォーマンスの評価
opg4j> model.evaluateLabels(fullGraph, testVertices).print();
Javaを使用したSupervised GraphWiseモデルのパフォーマンスの評価
model.evaluateLabels(fullGraph,testVertices).print();
Pythonを使用したSupervised GraphWiseモデル・パフォーマンスの評価
model.evaluate_labels(full_graph, test_vertices).print()
出力は、次の出力例のようになります。
+------------------------------------------+
| Accuracy | Precision | Recall | F1-Score |
+------------------------------------------+
| 0.8488 | 0.8523 | 0.831 | 0.8367 |
+------------------------------------------+