- プロパティ・グラフのグラフ開発者ガイド
- グラフ・サーバー(PGX)の使用
- グラフ用の機械学習ライブラリ(PgxML)の使用
- Unsupervised GraphWiseアルゴリズムの使用(頂点埋込み)
- グラフのロード
17.4.1 グラフのロード
次に、グラフをロードするステップについて説明します。
- セッションとアナリストを作成します。
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
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;
# starting the Python shell will create an implicit session and analyst
- グラフをロードします。
opg4j> var instance = GraphServer.getInstance("https://localhost:7007", "<username>", "<password>".toCharArray()) opg4j> var session=instance.createSession("mySession") opg4j> var graph = session.readGraphByName("<graph_name>",GraphSource.PG_PGQL)
ServerInstance instance = GraphServer.getInstance("https://localhost:7007", "<username>", "<password>".toCharArray()); PgxSession session = instance.createSession("my-session"); PgxGraph graph = session.readGraphByName("<graph_name>",GraphSource.PG_PGQL);
instance = graph_server.get_instance("https://localhost:7007","<username>","<password>") session = instance.create_session("my_session") graph = session.read_graph_by_name("<graph_name>", "pg_pgql")
モデルは教師なしでトレーニングされるため、テスト・グラフやテスト頂点を使用する必要はありません。