Turi Create
4.0
|
#include <toolkits/drawing_classifier/dc_data_iterator.hpp>
Public Member Functions | |
batch | next_batch (size_t batch_size) override |
bool | has_next_batch () override |
void | reset () override |
const flex_list & | class_labels () const override |
Concrete data_iterator implementation that doesn't attempt any parallelization or background I/O.
Definition at line 145 of file dc_data_iterator.hpp.
|
inlineoverridevirtual |
Returns a sorted list of the unique "label" values found in the target.
Implements turi::drawing_classifier::data_iterator.
Definition at line 159 of file dc_data_iterator.hpp.
|
overridevirtual |
Returns true if and only if the next call to next_batch
will return a batch with size greater than 0.
Implements turi::drawing_classifier::data_iterator.
|
overridevirtual |
Returns a vector whose size is equal to batch_size
.
If repeat
was set in the parameters, then the iterator will cycle indefinitely through the SFrame over and over. Otherwise, the last non-empty batch may contain fewer than batch_size
elements, and every batch after that will be empty.
Implements turi::drawing_classifier::data_iterator.
|
overridevirtual |
Begins a fresh traversal of the dataset.
Implements turi::drawing_classifier::data_iterator.