Learns multiple epochs, for data that wont fit in memory. More...
Inherits NetLearnerBase.
Public Member Functions | |
publicapi | NetLearnerOnDemand (Trainable *net, std::string trainFilepath, int Ntrain, std::string testFilepath, int Ntest, int fileReadBatches, int batchSize) |
publicapi VIRTUAL bool | getEpochDone () |
publicapi VIRTUAL int | getNextEpoch () |
publicapi VIRTUAL int | getNextBatch () |
publicapi VIRTUAL int | getNTrain () |
publicapi VIRTUAL int | getBatchNumRight () |
publicapi VIRTUAL float | getBatchLoss () |
publicapi VIRTUAL void | reset () |
publicapi VIRTUAL bool | tickBatch () |
publicapi VIRTUAL bool | tickEpoch () |
publicapi VIRTUAL void | run () |
publicapi VIRTUAL bool | isLearningDone () |
publicapi VIRTUAL void | learn (float learningRate) |
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 | ( | Trainable * | net, |
std::string | trainFilepath, | ||
int | Ntrain, | ||
std::string | testFilepath, | ||
int | Ntest, | ||
int | fileReadBatches, | ||
int | batchSize | ||
) |
publicapi VIRTUAL bool NetLearnerOnDemand::getEpochDone | ( | ) |
publicapi VIRTUAL int NetLearnerOnDemand::getNextEpoch | ( | ) |
publicapi VIRTUAL int NetLearnerOnDemand::getNextBatch | ( | ) |
publicapi VIRTUAL int NetLearnerOnDemand::getNTrain | ( | ) |
publicapi VIRTUAL int NetLearnerOnDemand::getBatchNumRight | ( | ) |
publicapi VIRTUAL float NetLearnerOnDemand::getBatchLoss | ( | ) |
publicapi VIRTUAL void NetLearnerOnDemand::reset | ( | ) |
publicapi VIRTUAL bool NetLearnerOnDemand::tickBatch | ( | ) |
publicapi VIRTUAL bool NetLearnerOnDemand::tickEpoch | ( | ) |
publicapi VIRTUAL void NetLearnerOnDemand::run | ( | ) |
publicapi VIRTUAL bool NetLearnerOnDemand::isLearningDone | ( | ) |
publicapi VIRTUAL void NetLearnerOnDemand::learn | ( | float | learningRate | ) |