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

Type Description
Decimal

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

Type Description
Text

DownloadPlot

procedure DownloadPlot(PdfDataBase64: Text, ModelName: Text)

Parameters

Name Type Description
PdfDataBase64 Text
ModelName Text

IsDataSufficientForClassification

procedure IsDataSufficientForClassification(): Boolean

Returns

Type Description
Boolean

IsDataSufficientForRegression

procedure IsDataSufficientForRegression(): Boolean

Returns

Type Description
Boolean

IsDataSufficientBase

procedure IsDataSufficientBase(var RecRef: RecordRef): Boolean

Parameters

Name Type Description
RecRef RecordRef

Returns

Type Description
Boolean

GetParameter

procedure GetParameter(Name: Text): Text

Parameters

Name Type Description
Name Text

Returns

Type Description
Text

GetInput

procedure GetInput(RowNo: Integer, ColumnNo: Integer): Text

Parameters

Name Type Description
RowNo Integer
ColumnNo Integer

Returns

Type Description
Text

GetInputLength

procedure GetInputLength(): Integer

Returns

Type Description
Integer

MaxNoFeatures

procedure MaxNoFeatures(): Integer

Returns

Type Description
Integer

See also