17.5.2 最小限のUnsupervised EdgeWiseモデルの作成
次のコードに示すように、最小限の構成とデフォルトのハイパーパラメータを使用して、EdgeWise
モデルを作成できます。モデルが機能するために必要な特徴プロパティが1つのみ(setVertexInputPropertyNames
の頂点またはsetEdgeInputPropertyNames
のエッジのいずれか)の場合でも、必要な数だけ指定できることに注意してください。
opg4j> var model = analyst.unsupervisedEdgeWiseModelBuilder().
setVertexInputPropertyNames("vertex_features").
setEdgeInputPropertyNames("edge_features").
build()
UnsupervisedEdgeWiseModel model = analyst.unsupervisedEdgeWiseModelBuilder()
.setVertexInputPropertyNames("vertex_features")
.setEdgeInputPropertyNames("edge_features")
.build();
params = dict(vertex_input_property_names=["vertex_features"],
edge_input_property_names=["edge_features"])
model = analyst.unsupervised_edgewise_builder(**params)