Skip to main content

%ML.DR.TrainedModel

Class %ML.DR.TrainedModel Extends %ML.TrainedModel [ ClassType = persistent ]

Properties

drjProvider

Property drjProvider As %ML.DR.Provider [ Transient ];

predServer

Property predServer As %List;

1: deploymentId, 2: prediction server ID, 3: prediction server URL, 4: prediction server key

withcolumnnames

Property withcolumnnames As %List [ Internal, Transient ];

Cached info

withcolumntypes

Property withcolumntypes As %List [ Internal, Transient ];

Cached info

Triggers

DeleteTriggerDR

Trigger DeleteTriggerDR [ Event = DELETE, Foreach = row/object ]

When deleting a trained model, delete the project and deployment of model in DR

Methods

%Begin

Method %Begin() As %Status

Begin trained model operations

%End

Method %End() As %Status

End trained model operations

%PredictAll

Method %PredictAll(tfn As %Integer, argspos As %List, predpos As %List = "", probpos As %List = "", expr As %String = "", headers As %List) As %Status

Bulk Predict arguments: tfn - tempfile index argspos - Positions of the WithColumns in the temp rows, $list(column-positions) predpos - Position of the predicted value, $list(result-column-positions) probpos - Position of the probability value, $list(result-column-positions) expr - expression for probability returns: $$$OK on success, otherwise a $$$ERROR(...)

%Predict

Method %Predict(data As %List, ByRef results As %List) As %Status

%Probability

Method %Probability(expr As %String = 1, data As %List, ByRef results As %List) As %Status

Predict probability on an ML model Arguments: expr: The argument of PROBABILITY's FOR clause, defaults to 1 data: $List of WITH clause values results: PBR, return value

predictORprobability

Method predictORprobability(expr As %String, data As %List, ByRef results As %List, predict As %Boolean) As %Status [ Internal ]