17.6.10 Loading a Pre-Trained Unsupervised Anomaly Detection GraphWise Model
You can load pre-trained models from a model store table in database as follows.
opg4j> var model = analyst.loadUnsupervisedAnomalyDetectionGraphWiseModel().db().
modelstore("modeltablename"). // name of the model store table
modelname("model"). // model name (primary key of model store table)
load()
UnsupervisedAnomalyDetectionGraphWiseModel model = analyst.loadUnsupervisedAnomalyDetectionGraphWiseModel().db()
.modelstore("modeltablename") // name of the model store table
.modelname("model") // model name (primary key of model store table)
.load();
model = analyst.get_unsupervised_anomaly_detection_graphwise_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.