DeepCL  v4.0.0rc5
Deep convolutional neural networks using OpenCL
 All Classes Functions
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)
 
publicapi VIRTUAL int getNextFileBatch ()
 
publicapi VIRTUAL int getNextBatch ()
 
publicapi VIRTUAL float getLoss ()
 
publicapi VIRTUAL int getNumRight ()
 
publicapi VIRTUAL bool getEpochDone ()
 
publicapi VIRTUAL int getN ()
 
publicapi void reset ()
 
publicapi bool tick ()
 
publicapi EpochResult run ()
 

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 ( )
Public API
publicapi VIRTUAL int OnDemandBatcher::getNextBatch ( )
Public API
publicapi VIRTUAL float OnDemandBatcher::getLoss ( )
Public API
publicapi VIRTUAL int OnDemandBatcher::getNumRight ( )
Public API
publicapi VIRTUAL bool OnDemandBatcher::getEpochDone ( )
Public API
publicapi VIRTUAL int OnDemandBatcher::getN ( )
Public API
publicapi void OnDemandBatcher::reset ( )
Public API
publicapi bool OnDemandBatcher::tick ( )
Public API
publicapi EpochResult OnDemandBatcher::run ( )
Public API

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