train_dl_model_anomaly_datasetT_train_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset (Operator)

Name

train_dl_model_anomaly_datasetT_train_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset — Train a deep learning model for anomaly detection.

Signature

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)

Description

The operator train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset performs the training of a deep learning model with 'type'"type""type""type""type"='anomaly_detection'"anomaly_detection""anomaly_detection""anomaly_detection""anomaly_detection" contained in DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle.

This operator processes the full training dataset at once. This is in contrast to the operator train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch. The iterations over the dataset are performed internally by the operator. Consequently, you only need to call this operator once with the full training dataset to train your anomaly detection model.

The training dataset is handed over in the tuple of dictionaries DLSamplesDLSamplesDLSamplesDLSamplesDLSamples. See the chapter Deep Learning / Model for further information to the used dictionaries and their keys. The operator expects within the training dataset only images without anomaly to train the anomaly detection model.

The dictionary DLTrainParamDLTrainParamDLTrainParamDLTrainParamDLTrainParam can be used to change the hyperparameters. The following values are supported:

The output dictionary DLTrainResultDLTrainResultDLTrainResultDLTrainResultDLTrainResult contains the following values:

Attention

To run this operator on GPU by setting 'runtime'"runtime""runtime""runtime""runtime" to 'gpu'"gpu""gpu""gpu""gpu" (see set_dl_model_paramset_dl_model_paramSetDlModelParamSetDlModelParamSetDlModelParam), cuDNN and cuBLAS are required. For further details, please refer to the “Installation Guide”, paragraph “Requirements for Deep Learning”. Alternatively, this operator can also be run on CPU by setting 'runtime'"runtime""runtime""runtime""runtime" to 'cpu'"cpu""cpu""cpu""cpu".

Execution Information

Parameters

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

Deep learning model handle.

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

Tuple of Dictionaries with input images and corresponding information.

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

Parameter for training the anomaly detection model.

Default value: []

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

Dictionary with the train result data.

Result

If the parameters are valid, the operator train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModel, set_dl_model_paramset_dl_model_paramSetDlModelParamSetDlModelParamSetDlModelParam, get_dl_model_paramget_dl_model_paramGetDlModelParamGetDlModelParamGetDlModelParam

Possible Successors

apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModel

See also

apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModel

Module

Deep Learning Training