Learns an entire epoch of training, for data that wont fit in memory.
More...
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
publicapi OnDemandBatcher::OnDemandBatcher |
( |
Trainable * |
net, |
|
|
NetAction * |
netAction, |
|
|
std::string |
filepath, |
|
|
int |
N, |
|
|
int |
fileReadBatches, |
|
|
int |
batchSize |
|
) |
| |
publicapi VIRTUAL int OnDemandBatcher::getNextFileBatch |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL int OnDemandBatcher::getNextBatch |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL float OnDemandBatcher::getLoss |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL int OnDemandBatcher::getNumRight |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL bool OnDemandBatcher::getEpochDone |
( |
| ) |
|
|
virtual |
publicapi VIRTUAL int OnDemandBatcher::getN |
( |
| ) |
|
|
virtual |
publicapi void OnDemandBatcher::reset |
( |
| ) |
|
publicapi bool OnDemandBatcher::tick |
( |
int |
epoch | ) |
|
publicapi EpochResult OnDemandBatcher::run |
( |
int |
epoch | ) |
|
The documentation for this class was generated from the following files:
- OnDemandBatcher.h
- OnDemandBatcher.cpp