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 Outputs tab of the Machine Learning Trainer Editor dialog box, select the field output variable to train. For more information, see Configure the Outputs.
See Also
Configuring the Machine Learning Trainer Adapter
  1. Select Train All Time Frames to train the model on field data from all the time steps in the high-fidelity physics simulation.
  2. 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.

  3. 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.

  4. 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.

  5. 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.
  6. 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.

  7. From the Activation Function options, select one of the following:
    OptionDescription
    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.

  8. From the Optimization Technique options, select one of the following:
    OptionDescription
    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.
  9. 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.

  10. From the Loss Function options, select one of the following:
    OptionDescription
    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
  11. Enter a value for the Validation Data (%), which is the proportion of the data set reserved for validation during the training process.
  12. Enter a value for the Validation Random Seed, which reproduces the split between the training and validation data sets across different runs.
  13. Click OK.