Skip to main content

INFORMATION.SCHEMA.MLVALIDATIONMETRICS

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

Returns one row for each Integrated ML Validation Metric 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 Validation Run

MODELNAME

Property MODELNAME As %String(MAXLEN = 256) [ SqlColumnNumber = 3, SqlComputeCode = { set {*}=##class(INFORMATION.SCHEMA.MLVALIDATIONMETRICS).GetModelName({VALIDATION_RUN_ID}) }, SqlComputed, SqlComputeOnChange = VALIDATIONRUNID, SqlFieldName = MODEL_NAME, Transient ];

Model Name

TRAINEDMODELNAME

Property TRAINEDMODELNAME As %String(MAXLEN = 256) [ SqlColumnNumber = 4, SqlComputeCode = { set {*}=##class(INFORMATION.SCHEMA.MLVALIDATIONMETRICS).GetTrainedModelName({VALIDATION_RUN_ID}) }, SqlComputed, SqlComputeOnChange = VALIDATIONRUNID, SqlFieldName = TRAINED_MODEL_NAME, Transient ];

Name of the Trained Model for this Validation Run

VALIDATIONRUNID

Property VALIDATIONRUNID As %BigInt [ Internal, Private, SqlColumnNumber = 5, SqlFieldName = VALIDATION_RUN_ID ];

ID of the Validation Run

VALIDATIONRUNNAME

Property VALIDATIONRUNNAME As %String(MAXLEN = 256) [ SqlColumnNumber = 6, SqlComputeCode = { set {*}=$lg($g(^IRIS.ML.ValidationRunD({VALIDATION_RUN_ID}),$lb(,,"UNKNOWN>")),3) }, SqlComputed, SqlComputeOnChange = VALIDATIONRUNID, SqlFieldName = VALIDATION_RUN_NAME, Transient ];

Name of the Validation Run

METRICNAME

Property METRICNAME As %String(MAXLEN = 200) [ SqlColumnNumber = 7, SqlFieldName = METRIC_NAME ];

Validation Metric Name

METRICVALUE

Property METRICVALUE As %Numeric [ SqlColumnNumber = 8, SqlFieldName = METRIC_VALUE ];

Validation Metric Value

TARGETVALUE

Property TARGETVALUE As %String(MAXLEN = 2000) [ SqlColumnNumber = 9, SqlFieldName = TARGET_VALUE ];

Validation Target Value

Methods

GetTrainedModelName

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

Given the %ML.ValidationRun ID, return the Trained Model Name

GetModelName

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

Given the %ML.ValidationRun ID, return the model name

IsPrivileged

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

Given the Validation Metric ID, is the user privileged to see this Validation Metrics info? We make sure the user is privileged on the Validation Run query