F_VN_TrainSample

F_VN_TrainSample 1:

Train a clusterer or a novelty detector with a single sample.

Syntax

Definition:

FUNCTION F_VN_TrainSample : HRESULT
VAR_INPUT
    ipMlModel : ITcVnMlModel;
    ipSample  : ITcUnknown;
    hrPrev    : HRESULT;
END_VAR

F_VN_TrainSample 2: Inputs

Name

Type

Description

ipMlModel

ITcVnMlModel

Clusterer or novelty detector to be used

ipSample

ITcUnknown

Container holding a single input sample (ContainerType_Vector_REAL or ContainerType_Vector_LREAL)

hrPrev

HRESULT

HRESULT indicating the result of previous operations (If SUCCEEDED(hrPrev) equals false, no operation is executed.)

F_VN_TrainSample 3: Return value

HRESULT

Weiterführende Informationen

Die Funktion F_VN_TrainSample trainiert ein Clusterer- oder Anomalie-Detektion-Modell mit einem Sample.

Parameter

Modell

Das zuvor erstellte Modell muss an ipMlModel übergeben werden.

Sample

Der Sample-Container wird an ipSample übergeben. Der Typ des Containers muss ContainerType_Vector_REAL oder ContainerType_Vector_LREAL sein.

Anwendung

Ein ML-Model kann mit einem Sample z.B. so trainiert werden:

hr := F_VN_TrainSample(
    ipMlModel   := ipMlModel,
    ipSample    := ipSample,
    hrPrev      := hr);

Verwandte Funktionen

Required License

TC3 Vision Machine Learning

System Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1. 4024.44 or later

PC or CX (x64) with PL50, e.g. Intel 4-core Atom CPU

Tc3_Vision