The network architectures allow different image dimensions.
But for networks with at least one
fully connected layer such a change makes a retraining necessary.
Networks without fully connected layers are directly applicable to different
image sizes. However, images with a size differing from the size with which
the classifier has been trained, are likely to show a reduced classification
accuracy.
Number of images (and corresponding
labels) in a batch and thus the number of images that are processed
simultaneously in a single iteration of the training. Please refer
to train_dl_classifier_batchtrain_dl_classifier_batchTrainDlClassifierBatchTrainDlClassifierBatchTrainDlClassifierBatch for further details.
This parameter is stored in the pretrained classifier. Per default,
the 'batch_size'"batch_size""batch_size""batch_size""batch_size" is set such that a training of the pretrained
classifier with up to 100 classes can be easily performed on a
device with 8 gigabyte of memory.
For the pretrained classifiers, the default values are hence given as
follows:
pretrained classifier
default value of
'batch_size'"batch_size""batch_size""batch_size""batch_size"
Number of channels of the images the
network will process. Possible are one channel (gray value image),
or three channels (three-channel image).
The default value is given by the network, see
read_dl_classifierread_dl_classifierReadDlClassifierReadDlClassifierReadDlClassifier.
Changing to a single channel image modifies the network configuration.
This process removes the color information contained in certain layers and
is not invertible.
Tuple containing the image dimensions
'image_width'"image_width""image_width""image_width""image_width", 'image_hight'"image_hight""image_hight""image_hight""image_hight", and number of channels
'image_num_channels'"image_num_channels""image_num_channels""image_num_channels""image_num_channels".
The default values are given by the network,
see read_dl_classifierread_dl_classifierReadDlClassifierReadDlClassifierReadDlClassifier.
Concerning the number of channels, the values one (gray value image),
or three (three-channel image) are possible.
Changing to a single channel image modifies the network configuration.
This process removes the color information contained in certain layers and
is not invertible.
Defines the device on which the operators will be executed.
Per default, the 'runtime'"runtime""runtime""runtime""runtime" is set to 'gpu'"gpu""gpu""gpu""gpu".
Here the index k runs over all weights of the network, except for the
biases which are not regularized. The regularization term
generally penalizes large weights, thus
pushing the weights towards zero, which effectively reduces the complexity
of the model.
Simply put: Regularization favors simpler models that are less likely to
learn noise in the data and generalize better. Per default no
regularization is used, i.e. 'weight_prior'"weight_prior""weight_prior""weight_prior""weight_prior" is set to
0.0. In case the classifier overfits the data, it is strongly
recommended to try different values for the parameter
'weight_prior'"weight_prior""weight_prior""weight_prior""weight_prior" to improve the generalization properties of the
neural network. Choosing its value is a trade-off between the models
ability to generalize, overfitting, and underfitting.
If is too small, the model might overfit, if its too
large the model might loose its ability to fit the data, because all
weights are effectively zero. For finding an ideal value for
, we recommend a cross-validation, i.e. to perform the
training for a range of values and choose the value that results in the
best validation error. For typical applications, we recommend testing the
values for 'weight_prior'"weight_prior""weight_prior""weight_prior""weight_prior" on a logarithmic scale between
. If the training takes a very
long time, one might consider performing the hyperparameter optimization
on a reduced amount of data.
For an explanation of the concept of deep-learning-based classification
see the introduction of chapter Deep Learning / Classification.
If the parameters are valid, the operator
set_dl_classifier_paramset_dl_classifier_paramSetDlClassifierParamSetDlClassifierParamSetDlClassifierParam returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.