15.5.8 グラフレット・ベクトルの推測
次のコードに示すように、特定の新しいグラフレットのベクトル表現を推測できます。
opg4j> var graphlet = session.readGraphWithProperties("<path>/<graphletConfig.json>")
opg4j> var inferredVector = model.inferGraphletVector(graphlet)
opg4j> inferredVector.print()PgxGraph graphlet = session.readGraphWithProperties("<path>/<graphletConfig.json>");
PgxFrame inferredVector = model.inferGraphletVector(graphlet);
inferredVector.print();graphlet = session.read_graph_with_properties("<path>/<graphletConfig.json>")
inferred_vector = model.infer_graphlet_vector(graphlet)
inferred_vector.print()inferredVectorのスキーマは、次の出力のようになります。+---------------------------------------------------------------+
| graphlet | embedding |
+---------------------------------------------------------------+親トピック: Pg2vecアルゴリズムの使用