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

Learns an entire epoch of training, for data that wont fit in memory. More...

Public Member Functions

publicapi OnDemandBatcher (Trainable *net, NetAction *netAction, std::string filepath, int N, int fileReadBatches, int batchSize)
 
virtual publicapi int getNextFileBatch ()
 
virtual publicapi int getNextBatch ()
 
virtual publicapi float getLoss ()
 
virtual publicapi int getNumRight ()
 
virtual publicapi bool getEpochDone ()
 
virtual publicapi int getN ()
 
publicapi void reset ()
 
publicapi bool tick (int epoch)
 
publicapi EpochResult run (int epoch)
 

Detailed Description

Learns an entire epoch of training, for data that wont fit in memory.

This handles an entire epoch of training, loading in data in chunks and then passing it to a 'Batcher' class, to train/test each chunk

If you want to run multiple epochs, you can use a 'NetLearnerOnDemand' class

Public API

Constructor & Destructor Documentation

publicapi OnDemandBatcher::OnDemandBatcher ( Trainable *  net,
NetAction *  netAction,
std::string  filepath,
int  N,
int  fileReadBatches,
int  batchSize 
)
Public API

Member Function Documentation

publicapi VIRTUAL int OnDemandBatcher::getNextFileBatch ( )
virtual
Public API
publicapi VIRTUAL int OnDemandBatcher::getNextBatch ( )
virtual
Public API
publicapi VIRTUAL float OnDemandBatcher::getLoss ( )
virtual
Public API
publicapi VIRTUAL int OnDemandBatcher::getNumRight ( )
virtual
Public API
publicapi VIRTUAL bool OnDemandBatcher::getEpochDone ( )
virtual
Public API
publicapi VIRTUAL int OnDemandBatcher::getN ( )
virtual
Public API
publicapi void OnDemandBatcher::reset ( )
Public API
publicapi bool OnDemandBatcher::tick ( int  epoch)
Public API
publicapi EpochResult OnDemandBatcher::run ( int  epoch)
Public API

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