IDAX.LIST_MODELS - List selected or all models
Use this stored procedure to list all models or the selected models.
Authorization
The privileges held by the authorization ID of the statement must include at least one of the following authorities:
- CONTROL privilege on the model
- SELECT privilege on the model
- DATAACCESS authority
Syntax
IDAX.LIST_MODELS(in parameter_string varchar(32672))
Parameter descriptions
- parameter_string
- Mandatory one-string parameter that contains pairs of <parameter>=<value> entries that are separated by a comma.
- format=short
- Optional.
- format=long
- Optional.
- schema
- Optional.
- all
- Optional.
- where
- Optional.
- outtable
- Optional.
- directory
- Optional.
- name
- Specifies the name of the file that is generated by the EXPORT_MODEL procedure. You do not need to include the .mdl extension in the file name.
Returned information
If format=short is specified, the result set columns are MODELSCHEMA, MODELNAME, OWNER, CREATED, STATE, MININGFUNCTION, ALGORITHM, and USERCATEGORY.
If format=long is specified, the result set columns are as follows:
Column name | Column type | Description |
---|---|---|
MODELSCHEMA | VARCHAR(128) | The schema of the analytics model that stores the model components |
MODELNAME | VARCHAR(64) | The name of the analytics model |
OWNER | VARCHAR(128) | The name of the owner of the analytics model, that is, a regular
user of the database Initally, the user name of the owner and the user name of the creator are identical. |
CREATOR | VARCHAR(128) | The name of the creator of the analytics model, that is, a
regular user of the database Initally, the user name of the creator and the user name of the owner are identical. |
CREATED | TIMESTAMP | The date and time when the analytics model is created This value cannot be changed. |
MODIFIED | TIMESTAMP | The date and time of the latest change of the analytics model This entry is updated when the metadata or the contents of the model are changed. |
STATE | VARCHAR(128) | The state of the model, for example, Creating, Updating, or Complete Creating means that the model is calculated. Updating means that the model is updated. Complete means that no creation process or update process is running. While the model is calculated or updated, the access to the metadata or the contents of the model is limited. |
DESCRIPTION | VARCHAR(4096) | A user-defined description of the analytics model For a new model, this column is NULL. You can update the column after the model generation is completed. |
COPYRIGHT | VARCHAR(128) | A user-defined copyright notice for the analytics model For a new model, this column is NULL. You can update the column after the model generation is completed. |
MININGFUNCTION | VARCHAR(64) | The mining function of the model, for example, clustering, classification, regression, associations, time series |
ALGORITHM | VARCHAR(64) | The name of the algorithm that is used to create the analytics model |
COMPONENTFORMAT | VARCHAR(16) | A version identifier that indicates the format of the model components |
SOURCE | VARCHAR(128) | The source of the model, for example, Local. |
APPLICATIONNAME | VARCHAR(128) | The name of the application that creates the analytics model This value is derived from the DB2® version. |
APPLICATIONVERSION | VARCHAR(64) | The version of the application that creates the analytics model |
USERCATEGORY | VARCHAR(64) | A user-defined category name, for example, a project name |
Example
CALL IDAX.LIST_MODELS('format=short, where=owner=''JDOE'' and algorithm=''Naive Bayes''')
This call returns the following result set:Result set 1
--------------
MODELSCHEMA MODELNAME OWNER CREATED STATE MININGFUNCTION ALGORITHM USERCATEGORY
----------- --------- -------- ----------------------- -------- -------------- ----------- ------------
JDOE NBX JDOE 2015-02-24-15.27.22.547 Complete classification Naive Bayes -
1 record(s) selected.
Return Status = 0