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 | NetLearnerOnDemand (Trainer *trainer, Trainable *net, std::string trainFilepath, int Ntrain, std::string testFilepath, 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
publicapi NetLearnerOnDemand::NetLearnerOnDemand | ( | Trainer * | trainer, |
Trainable * | net, | ||
std::string | trainFilepath, | ||
int | Ntrain, | ||
std::string | testFilepath, | ||
int | Ntest, | ||
int | fileReadBatches, | ||
int | batchSize | ||
) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |