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:
  • "ArraysLearningRateMultipliers"an association of the learning rate multiplier used for each array in the network
    "BatchesPerRound"the number of batches contained in a single round
    "BatchLossList"a list of the mean losses for each batch update
    "BatchMeasurementsLists"list of training measurements associations for each batch update
    "BatchSize"the effective value of BatchSize
    "BestValidationRound"the training round corresponding to the trained net
    "CheckpointingFiles"list of checkpointing files generated during training
    "ExamplesProcessed"total number of examples processed during training
    "FinalLearningRate"the learning rate at the end of training
    "FinalPlots"association of plots for all losses and measurements
    "InitialLearningRate"the learning rate at the start of training
    "LossPlot"a plot of the evolution of the mean training loss
    "MeanBatchesPerSecond"the mean number of batches processed per second
    "MeanExamplesPerSecond"the mean number of input examples processed per second
    "NetTrainInputForm"an expression representing the originating call to NetTrain
    "OptimizationMethod"the optimization method used and all the related options
    "ReasonTrainingStopped"brief description of why training stopped
    "RoundLoss"the mean loss for the most recent round
    "RoundLossList"a list of the mean losses for each round
    "RoundMeasurements"association of training measurements for the most recent round
    "RoundMeasurementsLists"list of training measurements associations for each round
    "RoundPositions"the batch numbers corresponding to each round measurement
    "TargetDevice"the device used for training
    "TotalBatches"the total number of batches encountered during training
    "TotalRounds"the total number of rounds of training performed
    "TotalTrainingTime"the total time spent training, in seconds
    "TrainedNet"the optimal trained network found (default)
    "TrainingExamples"the number of examples in the training set
    "TrainingNet"the network as prepared for training
    "ValidationExamples"the number of examples in the validation set
    "ValidationLoss"the mean loss obtained on the ValidationSet for the most recent validation measurement
    "ValidationLossList"list of the mean losses on the ValidationSet for each validation measurement
    "ValidationMeasurements"association of training measurements on the ValidationSet after the most recent validation measurement
    "ValidationMeasurementsLists"list of training measurements associations on the ValidationSet for each validation measurement
    "ValidationPositions"the batch numbers corresponding to each validation measurement

Examples

Basic Examples  (1)

Obtain a NetTrainResultsObject for a training session:

Query the results object for specific properties:

Get a list of all available properties:

Wolfram Research (2018), NetTrainResultsObject, Wolfram Language function, https://reference.wolfram.com/language/ref/NetTrainResultsObject.html (updated 2019).

Text

Wolfram Research (2018), NetTrainResultsObject, Wolfram Language function, https://reference.wolfram.com/language/ref/NetTrainResultsObject.html (updated 2019).

CMS

Wolfram Language. 2018. "NetTrainResultsObject." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/NetTrainResultsObject.html.

APA

Wolfram Language. (2018). NetTrainResultsObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetTrainResultsObject.html

BibTeX

@misc{reference.wolfram_2024_nettrainresultsobject, author="Wolfram Research", title="{NetTrainResultsObject}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/NetTrainResultsObject.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_nettrainresultsobject, organization={Wolfram Research}, title={NetTrainResultsObject}, year={2019}, url={https://reference.wolfram.com/language/ref/NetTrainResultsObject.html}, note=[Accessed: 30-December-2024 ]}