Configuring the Machine Learning Technique Training Settings
You can configure the machine learning technique training settings for the field
output.
Before you begin: From the Outputstab of the
Machine Learning Trainer Editor dialog box, select the field output
variable to train. For more information, see Configure the Outputs.
Select Train All Time Frames to train the model on field data
from all the time steps in the high-fidelity physics simulation.
Enter a value for the Maximum Training Time (hours), which is
the amount of time to train the model.
The neural network training stops when it reaches the maximum time, and the model with
the best validation performance persists.
Enter a value for the Maximum Training Epochs, which is the
maximum number of times the entire data set passes through the model during
training.
In each epoch, the model processes the training data in batches, computes the loss,
and the optimizer uses backpropagation to update the model parameters.
Enter a value for the Training Early Stop Patience, which is the
number of consecutive epochs that allow the model to continue training without improvement
in validation performance before the training automatically stops.
A value of 0 indicates that the training optimizer trains the model until it reaches
either the maximum training time or the maximum number of training epochs.
Enter a value for the Neural Net Random Seed, which ensures
reproducibility in training by controlling the randomness in various components of the
training process.
Enter a value for the Training Batch Size, which is the number
of training data points used to compute the model's weight updates during each
iteration.
The optimizer divides the entire data set into batches and updates the model
parameters after processing each batch. The batch size impacts the efficiency and
effectiveness of the training. A larger batch size can accelerate the training, while
adjusting it also affects the stability and convergence of the training.
From the Activation Function options, select one of the
following:
Option
Description
Tanh
Applies the hyperbolic tangent (Tanh) function to all layers in the neural
network.
ReLU
Applies the rectified linear unit function to all layers in the neural network.
From the Optimization Technique options, select one of the
following:
Option
Description
Adam
Uses the Adam algorithm to update the weights of a neural network during
training.
L-BFGS
Uses the L-BFGS algorithm to update the weights of a neural network during
training.
RMSprop
Uses the RMSprop algorithm to update the weights of a neural network during
training.
SGD
Uses the Stochastic Gradient Descent (SGD) algorithm to update the weights of a
neural network during training.
Enter a value for the Optimization Learning Rate, which
determines the step size for reducing the loss function during training.
The learning rate determines the speed at which the model updates its weights.
From the Loss Function options, select one of the
following:
Option
Description
Mean Squared Error
Measures the average squared difference between the predicted and actual values
of the 3D field.
Mean Absolute Error
Measures the average absolute difference between the predicted and actual values
of the 3D field.
Relative L2 Error
Normalizes the L2 norm of the error by the L2 norm of the true values
Enter a value for the Validation Data (%), which is the
proportion of the data set reserved for validation during the training process.
Enter a value for the Validation Random Seed, which reproduces
the split between the training and validation data sets across different runs.