Skip to main content

%ML.AutoML.TrainedModel

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

Class for a trained AutoML model instance

Properties

ModelState

Property ModelState As %Stream.GlobalCharacter;

Serialized model state

automlprovider

Property automlprovider As %ML.AutoML.Provider [ Internal, Transient ];

Provider instance

modelinstance

Property modelinstance As %SYS.Python [ Internal, Transient ];

AutoML model

WithColumnNames

Property WithColumnNames As %List [ Internal ];

Cached column names

WithColumnTypes

Property WithColumnTypes As %List [ Internal ];

Cached column types

columnnames

Property columnnames As %SYS.Python [ Internal, Transient ];

Python Column Info

profiler

Property profiler As %SYS.Python [ Internal, Transient ];

Profiler

Methods

%CreateTrainedModel

ClassMethod %CreateTrainedModel(provider As %ML.AutoML.Provider, trainingrun As %ML.TrainingRun, ByRef trainedmodel As %ML.AutoML.TrainedModel) As %Status

Factory method to create a trained model

%LoadModel

Method %LoadModel() As %Status

Load a serialized model

%PredictAll

Method %PredictAll(tfn As %Integer, argspos As %List, predpos As %List, probpos As %List = "", expr As %String = "", mtorder As %List, mtunary 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(...)

%Begin

Method %Begin() As %Status

Begin trained model operations

%End

Method %End() As %Status

End trained model operations

%Predict

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

Predict on an ML model

%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