Rate this Page

Template Struct Example< Data, example::NoTarget >#

Page Contents

Struct Documentation#

template<typename Data>
struct Example<Data, example::NoTarget>#

A specialization for Example that does not have a target.

This class exists so that code can be written for a templated Example type, and work both for labeled and unlabeled datasets.

Public Types

using DataType = Data#
using TargetType = example::NoTarget#

Public Functions

Example() = default#
inline Example(Data data)#
inline operator Data&()#
inline operator const Data&() const#

Public Members

Data data#