DeepCL
SNAPSHOT
Deep convolutional neural networks using OpenCL
|
Learns multiple epochs, for data that wont fit in memory. More...
Inherits NetLearnerBase.
Public Member Functions | |
publicapi | NetLearnerOnDemandv2 (Trainer *trainer, Trainable *net, GenericLoaderv2 *trainLoader, int Ntrain, GenericLoaderv2 *validateLoader, int Ntest, int fileReadBatches, int batchSize) |
virtual publicapi bool | getEpochDone () |
virtual publicapi int | getNextEpoch () |
virtual publicapi int | getNextBatch () |
virtual publicapi int | getNTrain () |
virtual publicapi int | getBatchNumRight () |
virtual publicapi float | getBatchLoss () |
virtual publicapi void | reset () |
virtual publicapi bool | tickBatch () |
virtual publicapi bool | tickEpoch () |
virtual publicapi void | run () |
virtual publicapi bool | isLearningDone () |
Learns multiple epochs, for data that wont fit in memory.
Handles learning the neural net, ie running multiple epochs, using two OnDemandBatchers, one for training, one for testing, to learn the epochs.
Note that there's no particular reason why this class couldnt be merged completely with the 'NetLeaner' class, simply passing in either 'Batcher' objects, or 'OnDemandBatcher' objects
Change in v2 vs v1: receives GenericLoaderv2 objects, instead of filepaths this means we can use it with imagenet manifests etc
publicapi NetLearnerOnDemandv2::NetLearnerOnDemandv2 | ( | Trainer * | trainer, |
Trainable * | net, | ||
GenericLoaderv2 * | trainLoader, | ||
int | Ntrain, | ||
GenericLoaderv2 * | validateLoader, | ||
int | Ntest, | ||
int | fileReadBatches, | ||
int | batchSize | ||
) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |