Codeunit "ML Prediction Management"
ID 2003
Namespace: System.AI
Methods
DefaultInitialize
procedure DefaultInitialize()
Initialize
Obsolete
This element will become obsolete from version 24.0. Use "Initialize(Uri: Text[250]; "Key": SecretText; TimeOutSeconds: Integer)" instead.
[NonDebuggable]
[Obsolete(Use "Initialize(Uri: Text[250]; "Key": SecretText; TimeOutSeconds: Integer)" instead.,24.0)]
procedure Initialize(Uri: Text[250], "Key": Text[200], TimeOutSeconds: Integer)
Parameters
Name |
Type |
Description |
Uri
|
Text[250]
|
|
Key
|
Text[200]
|
|
TimeOutSeconds
|
Integer
|
|
Initialize
procedure Initialize(Uri: Text[250], "Key": SecretText, TimeOutSeconds: Integer)
Parameters
Name |
Type |
Description |
Uri
|
Text[250]
|
|
Key
|
SecretText
|
|
TimeOutSeconds
|
Integer
|
|
InitializeWithKeyVaultCredentials
[NonDebuggable]
procedure InitializeWithKeyVaultCredentials(TimeOutSeconds: Integer)
Parameters
Name |
Type |
Description |
TimeOutSeconds
|
Integer
|
|
SetRecord
procedure SetRecord(RecordVariant: Variant)
Parameters
Name |
Type |
Description |
RecordVariant
|
Variant
|
|
GetRecord
procedure GetRecord(var RecordVariant: Variant)
Parameters
Name |
Type |
Description |
RecordVariant
|
Variant
|
|
AddFeature
procedure AddFeature(FeatureFieldNo: Integer)
Parameters
Name |
Type |
Description |
FeatureFieldNo
|
Integer
|
|
SetLabel
procedure SetLabel(LabelFieldNo: Integer)
Parameters
Name |
Type |
Description |
LabelFieldNo
|
Integer
|
|
SetConfidence
procedure SetConfidence(ConfidenceFieldNo: Integer)
Parameters
Name |
Type |
Description |
ConfidenceFieldNo
|
Integer
|
|
SetTrainingPercent
procedure SetTrainingPercent(TrainingPercentValue: Decimal)
Parameters
Name |
Type |
Description |
TrainingPercentValue
|
Decimal
|
|
GetTrainingPercent
procedure GetTrainingPercent(): Decimal
Returns
Train
procedure Train(var Model: Text, var Quality: Decimal)
Parameters
Name |
Type |
Description |
Model
|
Text
|
|
Quality
|
Decimal
|
|
Predict
procedure Predict(Model: Text)
Parameters
Name |
Type |
Description |
Model
|
Text
|
|
Evaluate
procedure Evaluate(Model: Text, var Quality: Decimal)
Parameters
Name |
Type |
Description |
Model
|
Text
|
|
Quality
|
Decimal
|
|
PlotModel
procedure PlotModel(Model: Text, Features: Text, Labels: Text): Text
Parameters
Name |
Type |
Description |
Model
|
Text
|
|
Features
|
Text
|
|
Labels
|
Text
|
|
Returns
DownloadPlot
procedure DownloadPlot(PdfDataBase64: Text, ModelName: Text)
Parameters
Name |
Type |
Description |
PdfDataBase64
|
Text
|
|
ModelName
|
Text
|
|
IsDataSufficientForClassification
procedure IsDataSufficientForClassification(): Boolean
Returns
IsDataSufficientForRegression
procedure IsDataSufficientForRegression(): Boolean
Returns
IsDataSufficientBase
procedure IsDataSufficientBase(var RecRef: RecordRef): Boolean
Parameters
Name |
Type |
Description |
RecRef
|
RecordRef
|
|
Returns
GetParameter
procedure GetParameter(Name: Text): Text
Parameters
Name |
Type |
Description |
Name
|
Text
|
|
Returns
GetInput
procedure GetInput(RowNo: Integer, ColumnNo: Integer): Text
Parameters
Name |
Type |
Description |
RowNo
|
Integer
|
|
ColumnNo
|
Integer
|
|
Returns
GetInputLength
procedure GetInputLength(): Integer
Returns
MaxNoFeatures
procedure MaxNoFeatures(): Integer
Returns
See also