DeepCL  v4.0.0rc5
Deep convolutional neural networks using OpenCL
 All Classes Functions
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 (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)
 

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 ( 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 ( )
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getNextEpoch ( )
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getNextBatch ( )
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getNTrain ( )
Public API
publicapi VIRTUAL int NetLearnerOnDemand::getBatchNumRight ( )
Public API
publicapi VIRTUAL float NetLearnerOnDemand::getBatchLoss ( )
Public API
publicapi VIRTUAL void NetLearnerOnDemand::reset ( )
Public API
publicapi VIRTUAL bool NetLearnerOnDemand::tickBatch ( )
Public API
publicapi VIRTUAL bool NetLearnerOnDemand::tickEpoch ( )
Public API
publicapi VIRTUAL void NetLearnerOnDemand::run ( )
Public API
publicapi VIRTUAL bool NetLearnerOnDemand::isLearningDone ( )
Public API
publicapi VIRTUAL void NetLearnerOnDemand::learn ( float  learningRate)
Public API

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