TrainingHistory
class TrainingHistory
Content copied to clipboard
Contains all recorded batch events as a list of BatchTrainingEvent objects and epoch events as a list of EpochTrainingEvent objects.
NOTE: Used to record BatchTrainingEvent and EpochTrainingEvent during training phase.
Constructors
TrainingHistory
Link copied to clipboard
fun TrainingHistory()
Content copied to clipboard
Functions
appendBatch
Link copied to clipboard
Appends one BatchTrainingEvent.
fun appendBatch(epochIndex: Int, batchIndex: Int, lossValue: Double, metricValue: Double)
Content copied to clipboard
Appends tracked data from one batch event.
appendEpoch
Link copied to clipboard
Appends one EpochTrainingEvent.
eventsByEpoch
Link copied to clipboard
Returns all BatchTrainingEvent of the specific epoch.
get
Link copied to clipboard
operator fun get(desiredField: KProperty1<EpochTrainingEvent, Double>): DoubleArray
Content copied to clipboard
Returns all values of one filed in EpochTrainingEvent for all epochs. All EpochTrainingEvent.metricValue for example.
lastBatchEvent
Link copied to clipboard
Returns last BatchTrainingEvent
lastEpochEvent
Link copied to clipboard
Returns last EpochTrainingEvent.