DeepCL  SNAPSHOT
Deep convolutional neural networks using OpenCL
Public Member Functions | List of all members
NetLearnerOnDemand Class Reference

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 ()
 

Detailed Description

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

Public API

Constructor & Destructor Documentation

publicapi NetLearnerOnDemand::NetLearnerOnDemand ( Trainer *  trainer,
Trainable *  net,
std::string  trainFilepath,
int  Ntrain,
std::string  testFilepath,
int  Ntest,
int  fileReadBatches,
int  batchSize 
)
Public API

Member Function Documentation

publicapi VIRTUAL bool NetLearnerOnDemand::getEpochDone ( )
virtual
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getNextEpoch ( )
virtual
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getNextBatch ( )
virtual
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getNTrain ( )
virtual
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getBatchNumRight ( )
virtual
Public API
publicapi VIRTUAL float NetLearnerOnDemand::getBatchLoss ( )
virtual
Public API
publicapi VIRTUAL void NetLearnerOnDemand::reset ( )
virtual
Public API
publicapi VIRTUAL bool NetLearnerOnDemand::tickBatch ( )
virtual
Public API
publicapi VIRTUAL bool NetLearnerOnDemand::tickEpoch ( )
virtual
Public API
publicapi VIRTUAL void NetLearnerOnDemand::run ( )
virtual
Public API
publicapi VIRTUAL bool NetLearnerOnDemand::isLearningDone ( )
virtual
Public API

The documentation for this class was generated from the following files: