Turi Create
4.0
|
#include <toolkits/activity_classification/ac_data_iterator.hpp>
Classes | |
struct | batch |
struct | parameters |
Public Member Functions | |
virtual bool | has_next_batch () const =0 |
virtual batch | next_batch (size_t batch_size)=0 |
virtual void | reset ()=0 |
Pure virtual interface for classes that produce batches of activity classification data from a raw SFrame.
Definition at line 24 of file ac_data_iterator.hpp.
|
pure virtual |
Returns true if and only if the next call to next_batch
will return a batch with size greater than 0.
Implemented in turi::activity_classification::simple_data_iterator.
|
pure virtual |
Returns a batch containing float arrays with the indicated batch size.
Eventually returns a batch with size smaller than the requested size, indicating that the entire dataset has been traversed. All subsequent calls will return an empty (all padding) batch, until reset.
Implemented in turi::activity_classification::simple_data_iterator.
|
pure virtual |
Begins a fresh traversal of the dataset.
Implemented in turi::activity_classification::simple_data_iterator.