train_dl_model_anomaly_datasetT_train_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset (Operator)

Name

train_dl_model_anomaly_datasetT_train_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset — Trainieren eines Deep Learning-Modells zur Anomalieerkennung.

Signatur

train_dl_model_anomaly_dataset( : : DLModelHandle, DLSamples, DLTrainParam : DLTrainResult)

Herror T_train_dl_model_anomaly_dataset(const Htuple DLModelHandle, const Htuple DLSamples, const Htuple DLTrainParam, Htuple* DLTrainResult)

void TrainDlModelAnomalyDataset(const HTuple& DLModelHandle, const HTuple& DLSamples, const HTuple& DLTrainParam, HTuple* DLTrainResult)

HDict HDlModel::TrainDlModelAnomalyDataset(const HDictArray& DLSamples, const HDict& DLTrainParam) const

static void HOperatorSet.TrainDlModelAnomalyDataset(HTuple DLModelHandle, HTuple DLSamples, HTuple DLTrainParam, out HTuple DLTrainResult)

HDict HDlModel.TrainDlModelAnomalyDataset(HDict[] DLSamples, HDict DLTrainParam)

Beschreibung

Der Operator train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset trainiert das in DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle enthaltenen Deep Learning-Modell mit 'type'"type""type""type""type"='anomaly_detection'"anomaly_detection""anomaly_detection""anomaly_detection""anomaly_detection".

Dieser Operator verarbeitet den ganzen Datensatz auf einmal. Dies ist anders als beim Operator train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch. Die Iterationen über den Datasensatz werden vom Operator intern durchgeführt. Somit muss der Oprator für das ganze Training des Modells nur einmal aufgerufen werden.

Der Trainings-Datensatz im Tupel von Dictionaries DLSamplesDLSamplesDLSamplesDLSamplesDLSamples übergeben. Weitere Informationen zu den verwendeten Dictionaries und zugehörigen Keys können im Kapitel Deep Learning / Modell gefunden werden. Der Operator erwartet im Trainings-Datensatz zum Trainieren des Modells nur Bilder ohne Anomalie.

Mit dem Dictionary DLTrainParamDLTrainParamDLTrainParamDLTrainParamDLTrainParam können die Hyperparameter verändert werden. Folgende Werte werden unterstützt:

Das Ausgabe-Dictionary DLTrainResultDLTrainResultDLTrainResultDLTrainResultDLTrainResult enthält die folgenden Werte:

Achtung

Um diesen Operator auf der GPU auszuführen, indem 'runtime'"runtime""runtime""runtime""runtime" auf 'gpu'"gpu""gpu""gpu""gpu" gesetzt ist (siehe get_dl_model_paramget_dl_model_paramGetDlModelParamGetDlModelParamGetDlModelParam), werden cuDNN und cuBLAS benötigt. Für weitere Details wird auf den „Installation Guide“, Abschnitt „Requirements for Deep Learning“, verwiesen. Alternativ kann dieser Operator auch auf der CPU ausgeführt werden, indem man 'runtime'"runtime""runtime""runtime""runtime" auf 'cpu'"cpu""cpu""cpu""cpu" setzt.

Ausführungsinformationen

Parameter

DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle (input_control)  dl_model HDlModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Deep Learning-Modells.

DLSamplesDLSamplesDLSamplesDLSamplesDLSamples (input_control)  dict-array HDict, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Tupel von Dictionaries mit Eingabebildern und zugehörigen Informationen.

DLTrainParamDLTrainParamDLTrainParamDLTrainParamDLTrainParam (input_control)  dict HDict, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Parameter zum Trainieren des Anomalieerkennungsmodells.

Defaultwert: []

DLTrainResultDLTrainResultDLTrainResultDLTrainResultDLTrainResult (output_control)  dict HDict, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Dictionary mit den Trainingsergebnissen.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModel, set_dl_model_paramset_dl_model_paramSetDlModelParamSetDlModelParamSetDlModelParam, get_dl_model_paramget_dl_model_paramGetDlModelParamGetDlModelParamGetDlModelParam

Nachfolger

apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModel

Siehe auch

apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModel

Modul

Deep Learning Training