17.5.11 Unsupervised EdgeWiseモデルの格納

モデルはデータベースに格納できます。モデルは、モデル・ストア表内の行として格納されます。

トレーニング済UnsupervisedEdgeWiseモデルをデータベースの特定のモデル・ストア表に格納する方法を次に示します。

opg4j> model.export().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()
model.export().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();
model.export().db(model_store="modeltablename",    # name of the model store table
                  model_name="model",                       # model name (primary key of model store table)
                  model_description="a model description")  # description to store alongside the model

ノート:

前述のすべての例では、現在ログインしているデータベースにモデルを格納することを前提としています。別のデータベースにモデルを格納する必要がある場合は、トレーニング済モデルの別のデータベースへの格納の例を参照してください。