NetTrainResultsObject

NetTrainResultsObject[]

represents an object generated by NetTrain that contains the trained net and other information about the training process.

Details

  • NetTrain[net,data,All] will generate a NetTrainResultsObject[].
  • NetTrainResultsObject[][prop] is used to look up property prop from the NetTrainResultsObject.
  • Properties supported include:
  • "TrainedNet"the optimal trained network found (default)
    "FinalNet"the final network generated in the training process
    "TrainingNet"the network as prepared for training
    "BatchLossList"a list of the mean loss after each batch update
    "BatchErrorRateList"a list of the error rate after each batch update
    "RoundLossList"a list of the mean loss across each round
    "RoundErrorRateList"a list of the mean error rate across each round
    "ValidationLossList"a list of the mean losses obtained on the ValidationSet
    "ValidationErrorRateList"a list of the error rates obtained on the ValidationSet
    "LossEvolutionPlot"a plot of the evolution of the mean loss during training
    "ErrorRateEvolutionPlot"a plot of the evolution of the mean error rate during training
    "FinalRoundLoss"the mean loss achieved on the final round
    "FinalRoundErrorRate"the mean error rate achieved on the final round
    "FinalValidationLoss"the final mean loss achieved on the ValidationSet
    "FinalValidationErrorRate"the final mean error rate achieved on the ValidationSet
    "LowestValidationLoss"the lowest mean loss achieved on the ValidationSet
    "LowestValidationErrorRate"the lowest mean error rate achieved on the ValidationSet
    "BatchSize"the effective value of BatchSize
    "TotalRounds"the total number of rounds of training performed
    "TotalBatches"the total number of batches encountered during training
    "TotalInputs"the total number of individual inputs trained on
    "TotalTrainingTime"the total time spent training, in seconds
    "MeanBatchesPerSecond"the mean number of batches processed per second
    "MeanInputsPerSecond"the mean number of inputs processed per second
    "InitialLearningRate"the learning rate at the start of training
    "FinalLearningRate"the learning rate at the end of training
    "WeightsLearningRateMultipliers"an association of the learning rate multiplier used for each weight
    "OptimizationMethod"the name of the optimization method used
    "NetTrainInputForm"an expression representing the originating call to NetTrain
    "Properties"the list of available properties

Examples

Basic Examples  (1)

Obtain a NetTrainResultsObject for a training session:

In[1]:=
Click for copyable input
Out[1]=

Query the results object for specific properties:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Get a list of all available properties:

In[6]:=
Click for copyable input
Out[6]=

See Also

NetTrain  NetInformation  NetExtract  ClassifierMeasurements  NetChain  NetGraph

Tutorials

Introduced in 2018
(11.3)