プロパティ・グラフのグラフ開発者ガイド グラフ・サーバー(PGX)の使用 グラフ用の機械学習ライブラリ(PgxML)の使用 Unsupervised GraphWiseアルゴリズムの使用 グラフのロード 15.3.1 グラフのロード 次に、グラフをロードするステップについて説明します。 セッションとアナリストを作成します。 JShell Java Python cd /opt/oracle/graph/ ./bin/opg4j // starting the shell will create an implicit session and analyst opg4j> import oracle.pgx.config.mllib.ActivationFunction opg4j> import oracle.pgx.config.mllib.WeightInitScheme opg4j> PgxSession session = Pgx.createSession("my-session") opg4j> Analyst analyst = session.createAnalyst() import oracle.pgx.api.*; import oracle.pgx.api.mllib.UnsupervisedGraphWiseModel; import oracle.pgx.api.frames.*; import oracle.pgx.config.mllib.ActivationFunction; import oracle.pgx.config.mllib.GraphWiseConvLayerConfig; import oracle.pgx.config.mllib.UnsupervisedGraphWiseModelConfig; import oracle.pgx.config.mllib.WeightInitScheme; PgxSession session = Pgx.createSession("my-session"); Analyst analyst = session.createAnalyst(); session = pypgx.get_session() analyst = session.analyst グラフをロードします。 JShell Java Python opg4j> var graph = session.readGraphWithProperties("<path/to/graph_config.json>") PgxGraph graph = session.readGraphWithProperties("<path/to/graph_config.json>"); graph = session.read_graph_with_properties("<path/to/graph_config.json>") モデルは教師なしでトレーニングされるため、テスト・グラフやテスト頂点を使用する必要はありません。 親トピック: Unsupervised GraphWiseアルゴリズムの使用