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

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

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

Change in v2 vs v1: receives GenericLoaderv2 objects, instead of filepaths this means we can use it with imagenet manifests etc

Constructor & Destructor Documentation

publicapi NetLearnerOnDemandv2::NetLearnerOnDemandv2 ( Trainer *  trainer,
Trainable *  net,
GenericLoaderv2 *  trainLoader,
int  Ntrain,
GenericLoaderv2 *  validateLoader,
int  Ntest,
int  fileReadBatches,
int  batchSize 
)
Public API

Member Function Documentation

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

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