8.3.8 Loading a Pre-Trained Unsupervised GraphWise Model

You can load models from a database.

  1. Load a pre-trained Unsupervised GraphWise Model from a model store table as shown in following code:
    Loading a Pre-Trained Unsupervised GraphWise Model Using JShell
    opg4j> var model = analyst.loadUnsupervisedGraphWiseModel().db().
                    modelstore("modeltablename"). // name of the model store table
                    modelname("model").           // model name (primary key of model store table)
                    load();
    Loading a Pre-Trained Unsupervised GraphWise Model Using Java
    UnsupervisedGraphWiseModel model = analyst.loadUnsupervisedGraphWiseModel().db()
         .modelstore("modeltablename") // name of the model store table
         .modelname("model")           // model name (primary key of model store table)
         .load();
    Loading a Pre-Trained Unsupervised GraphWise Model Using Python
    analyst.get_unsupervised_graphwise_model_loader().db(model_store="modelstoretablename",
                                         model_name="model")

    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.