17.5.12 Loading a Pre-Trained Unsupervised EdgeWise Model
You can load a pre-trained UnsupervisedEdgeWise
model from a model
store table in the database as shown:
opg4j> var model = analyst.loadUnsupervisedEdgeWiseModel().db().
modelstore("modeltablename"). // name of the model store table
modelname("model"). // model name (primary key of model store table)
load()
UnsupervisedEdgeWiseModel model = analyst.loadUnsupervisedEdgeWiseModel().db()
.modelstore("modeltablename") // name of the model store table
.modelname("model") // model name (primary key of model store table)
.load();
model = analyst.get_unsupervised_edgewise_model_loader(). \
db("modeltablename", # name of the model store table
"model_name") # model name (primary key of model store table)
Note:
All the preceding examples assume that you are loading the model from the current logged in database. If you must load the model from a different database then refer to the examples in Loading a Pre-Trained Model From Another Database.Parent topic: Using the Unsupervised EdgeWise Algorithm