Turi Create  4.0
turi::drawing_classifier::simple_data_iterator Class Reference

#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_listclass_labels () const override
 

Detailed Description

Concrete data_iterator implementation that doesn't attempt any parallelization or background I/O.

Definition at line 145 of file dc_data_iterator.hpp.

Member Function Documentation

◆ class_labels()

const flex_list& turi::drawing_classifier::simple_data_iterator::class_labels ( ) const
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.

◆ has_next_batch()

bool turi::drawing_classifier::simple_data_iterator::has_next_batch ( )
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.

◆ next_batch()

batch turi::drawing_classifier::simple_data_iterator::next_batch ( size_t  batch_size)
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.

◆ reset()

void turi::drawing_classifier::simple_data_iterator::reset ( )
overridevirtual

Begins a fresh traversal of the dataset.

Implements turi::drawing_classifier::data_iterator.


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