Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::src::example Struct Reference

#include <dataframe.h>

Public Member Functions

bool operator== (const example &) const noexcept=default

Public Attributes

value_t output {}
std::vector< value_t > input {}

Detailed Description

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

The example struct consists of an input vector (input) and an output value (output). Depending on the task, output holds:

  • a numeric value (e.g. in symbolic regression);
  • a categorical label (e.g. in classification).

Member Data Documentation

◆ input

std::vector<value_t> ultra::src::example::input {}

The instance we want to make a prediction about. Each element in the vector represents a feature.

◆ output

value_t ultra::src::example::output {}

The expected output for the prediction task: either the predicted value or the correct label from training data.


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