Skip to main content

INFORMATION.SCHEMA.MLMODELS

Class INFORMATION.SCHEMA.MLMODELS Extends %Library.Persistent [ ClassType = persistent, Final, Owner = {_PUBLIC}, SqlRowIdPrivate, SqlTableName = ML_MODELS, StorageStrategy = SQLStorage, System = 4 ]

Returns one row for each Integrated ML Model that can be accessed by the current user in the current namespace.

Parameters

READONLY

Parameter READONLY = 1;

Properties

ID

Property ID As %BigInt [ Internal, Private, Required, SqlColumnNumber = 2, SqlFieldName = ID ];

ID of the model

MODELNAME

Property MODELNAME As %String(MAXLEN = 256) [ Required, SqlColumnNumber = 3, SqlFieldName = MODEL_NAME ];

Name of the model

DESCRIPTION

Property DESCRIPTION As %String(MAXLEN = 8192) [ SqlColumnNumber = 4 ];

Model description

PREDICTINGCOLUMNNAME

Property PREDICTINGCOLUMNNAME As %String(MAXLEN = 128) [ Required, SqlColumnNumber = 5, SqlFieldName = PREDICTING_COLUMN_NAME ];

Column Name we are predicting

PREDICTINGCOLUMNTYPE

Property PREDICTINGCOLUMNTYPE As %String(MAXLEN = 128) [ Required, SqlColumnNumber = 6, SqlFieldName = PREDICTING_COLUMN_TYPE ];

Column Type we are predicting

WITHCOLUMNTNAMES

Property WITHCOLUMNTNAMES As list Of %String(MAXLEN = 128) [ Internal, Private, Required, SqlColumnNumber = 7, SqlFieldName = WITH_COLUMN_NAMES ];

Columns names we are predicting using

WITHCOLUMNTYPES

Property WITHCOLUMNTYPES As list Of %String(MAXLEN = 128) [ Internal, Private, Required, SqlColumnNumber = 8, SqlFieldName = WITH_COLUMN_TYPES ];

Columns types we are predicting using

WITHCOLUMNS

Property WITHCOLUMNS As %String(MAXLEN = 4096) [ SqlColumnNumber = 9, SqlComputeCode = { set {*}=##class(INFORMATION.SCHEMA.MLMODELS).WithColumns({WITH_COLUMN_NAMES},{WITH_COLUMN_TYPES}) }, SqlComputed, SqlComputeOnChange = (WITHCOLUMNTNAMES, WITHCOLUMNTYPES), SqlFieldName = WITH_COLUMNS, Transient ];

With Columns

CREATETIMESTAMP

Property CREATETIMESTAMP As %TimeStamp [ Required, SqlColumnNumber = 11, SqlFieldName = CREATE_TIMESTAMP ];

Timestamp for when the model was created (UTC)

DEFAULTTRAINEDMODELID

Property DEFAULTTRAINEDMODELID As %ML.TrainedModel [ Internal, Private, SqlColumnNumber = 12, SqlFieldName = DEFAULT_TRAINED_MODEL_ID ];

Default trained model id

DEFAULTTRAINEDMODELNAME

Property DEFAULTTRAINEDMODELNAME As %String(MAXLEN = 275) [ SqlColumnNumber = 13, SqlComputeCode = { set {*}=$s({DEFAULT_TRAINED_MODEL_ID}="":"",1:$lg($g(^IRIS.ML.TrainedModelD({DEFAULT_TRAINED_MODEL_ID})),6))}, SqlComputed, SqlComputeOnChange = DEFAULTTRAINEDMODELID, SqlFieldName = DEFAULT_TRAINED_MODEL_NAME, Transient ];

Default trained model name

DEFAULTSETTINGS

Property DEFAULTSETTINGS As %String(MAXLEN = 32000) [ SqlColumnNumber = 14, SqlComputeCode = { Set {*}=##class(INFORMATION.SCHEMA.MLMODELS).GetSettings({ID}) }, SqlComputed, SqlFieldName = DEFAULT_SETTINGS, Transient ];

Default Parameter (Settings) the model's provider will use

DEFAULTTRAININGQUERY

Property DEFAULTTRAININGQUERY As %String(MAXLEN = 32000) [ SqlColumnNumber = 15, SqlFieldName = DEFAULT_TRAINING_QUERY ];

Default training query (SQL)

Methods

WithColumns

ClassMethod WithColumns(Names As %List, Types As %List) As %String(MAXVAL=4096) [ Final, Internal, Language = objectscript ]

Given a list of column names and a list of ODBC type numbers, return a string of Name:SQLType for each WITH column in the model

GetSettings

ClassMethod GetSettings(id As %BigInt) As %String [ Final, Internal, Language = objectscript ]

Given a model ID, return a string of DefaultParameters (Settings) for the model