%ML.Provider

abstract class %ML.Provider extends %Library.RegisteredObject

Base class for an ML provider

Method Inventory

Parameters

parameter DEFAULTPROVIDER = AutoML;
Default provider name
parameter PROVIDERNAME;
Provider name
parameter SQLTYPE = resultset;
Type of SQL TRAIN will operate on Options are "resutset" or "query" If the provider uses resultset, %Train is called with a resultset object for the query If the provider uses query, %TrainQyert is called with the SQL query text

Methods

abstract method %BeginTraining(model As %ML.Model, data As %SQL.StatementResult, trainingrun As %ML.TrainingRun, ByRef name As %String = "", ByRef trainkey) as %Status [ Language = objectscript ]
Train an ML model
classmethod %CreateProvider(name As %String = "", ByRef provider As %ML.Provider) as %Status [ Language = objectscript ]
Factory method to create an instance of an ML provider by name
classmethod %GetDefaultSettings(ByRef settings As %DynamicObject) [ Language = objectscript ]
Adds the default settings for the provider to the settings dynamic object
method %GetName() as %String [ Language = objectscript ]
Returns the provider name (the class name by default)
classmethod %GetProvider(name As %String = "", ByRef class As %String) as %Boolean [ Language = objectscript ]
Look up a provider proper name
method %GetTrainStatement() as %SQL.Statement [ Language = objectscript ]
Returns an instance of %SQL.Statement to be used for the training query
method %OnClose() as %Status [ Language = objectscript ]
Make sure we clean up
method %OnExit() as %Status [ Language = objectscript ]
Shutdown a provider
method %OnInit() as %Status [ Language = objectscript ]
Initialize a provider
abstract method %WaitForTraining(ByRef trainkey, trainingrun As %ML.TrainingRun, ByRef trainedmodel As %ML.TrainedModel, timeoutMS As %Integer = -1) as %Status [ Language = objectscript ]
Check for training complete

Inherited Members

Inherited Methods

Feedback