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

#include <toolkits/activity_classification/ac_data_iterator.hpp>

Public Member Functions

bool has_next_batch () const override
 
batch next_batch (size_t batch_size) override
 
void reset () override
 

Detailed Description

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

Definition at line 167 of file ac_data_iterator.hpp.

Member Function Documentation

◆ has_next_batch()

bool turi::activity_classification::simple_data_iterator::has_next_batch ( ) const
overridevirtual

Returns true if and only if the next call to next_batch will return a batch with size greater than 0.

Implements turi::activity_classification::data_iterator.

◆ next_batch()

batch turi::activity_classification::simple_data_iterator::next_batch ( size_t  batch_size)
overridevirtual

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.

Implements turi::activity_classification::data_iterator.

◆ reset()

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

Begins a fresh traversal of the dataset.

Implements turi::activity_classification::data_iterator.


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