Vita
Public Member Functions | Public Attributes | List of all members
vita::dataframe::example Struct Reference

Stores a single element (row) of the dataset. More...

#include <dataframe.h>

Public Member Functions

void clear ()
 

Public Attributes

unsigned age = 0
 
std::uintmax_t difficulty = 0
 
std::vector< value_tinput = {}
 The thing about which we want to make a prediction (aka instance). More...
 
value_t output = {}
 The answer for the prediction task either the answer produced by the machine learning system, or the right answer supplied in the training data. More...
 

Detailed Description

Stores a single element (row) of the dataset.

The struct consists of an input vector (input) and an answer value (output). Depending on the kind of problem, output stores:

difficulty and age are parameters used by the Dynamic Subset Selection algorithm (see "Dynamic Training Subset Selection for Supervised Learning in Genetic Programming" - Chris Gathercole, Peter Ross).

Definition at line 193 of file dataframe.h.

Member Function Documentation

◆ clear()

void vita::dataframe::example::clear ( )
inline

Definition at line 206 of file dataframe.h.

Member Data Documentation

◆ age

unsigned vita::dataframe::example::age = 0

Definition at line 204 of file dataframe.h.

◆ difficulty

std::uintmax_t vita::dataframe::example::difficulty = 0

Definition at line 203 of file dataframe.h.

◆ input

std::vector<value_t> vita::dataframe::example::input = {}

The thing about which we want to make a prediction (aka instance).

The elements of the vector are features.

Definition at line 197 of file dataframe.h.

◆ output

value_t vita::dataframe::example::output = {}

The answer for the prediction task either the answer produced by the machine learning system, or the right answer supplied in the training data.

Definition at line 201 of file dataframe.h.


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