8.1.8.1 トレーニング済モデルの別のデータベースへの格納
モデルは、ログインに使用されたものとは異なるデータベースに格納できます。
次のコードは、トレーニング済モデルを別のデータベースに格納する方法を示しています。
JShellを使用したトレーニング済モデルの格納
opg4j> model.export().db().
username("user"). // DB user to use for storing the model
password("password"). // password of the DB user
jdbcUrl("jdbcUrl"). // jdbc url to the DB
modelstore("modelstoretablename"). // name of the model store table
modelname("model"). // model name (primary key of model store table)
description("a model description"). // description to store alongside the model
store();Javaを使用したトレーニング済モデルの格納
model.export().db()
.username("user") // DB user to use for storing the model
.password("password") // password of the DB user
.jdbcUrl("jdbcUrl") // jdbc url to the DB
.modelstore("modelstoretablename") // name of the model store table
.modelname("model") // model name (primary key of model store table)
.description("a model description") // description to store alongside the model
.store();Pythonを使用したトレーニング済モデルの格納
model.export().db(username="user",
password="password",
model_store="modelstoretablename",
model_name="model",
description="a model description",
jdbc_url="jdbc_url")親トピック: トレーニング済DeepWalkモデルの格納