Ultra 0.9.4
Loading...
Searching...
No Matches
dataframe.h File Reference
#include "kernel/distribution.h"
#include "kernel/exceptions.h"
#include "kernel/problem.h"
#include "kernel/gp/src/classification_result.h"
#include "kernel/gp/src/columns_info.h"
#include "utility/pocket_csv.h"
#include <filesystem>
#include <functional>
#include <map>
#include <optional>
#include <set>
#include <string>
#include <vector>
#include "kernel/gp/src/dataframe.tcc"

Go to the source code of this file.

Classes

struct  ultra::src::example
class  ultra::src::dataframe
struct  ultra::src::dataframe::params

Namespaces

namespace  ultra

Typedefs

using ultra::src::record_t = std::vector<value_t>
using ultra::src::raw_data = std::vector<record_t>

Functions

class_t ultra::src::label (const example &e)
domain_t ultra::src::from_weka (const std::string &n)
template<class T>
T ultra::src::label_as (const src::example &e)
std::ostream & ultra::src::operator<< (std::ostream &, const dataframe &)
value_t ultra::src::internal::lexical_cast (value_t v, domain_t d)
template<class T>
void ultra::src::internal::inplace_trim (T &v)

Detailed Description

Remarks
This file is part of ULTRA.
License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/

Typedef Documentation

◆ record_t

using ultra::src::record_t = std::vector<value_t>

A raw observation or data entry, typically read from an input source.

The ETL chain is: INPUT SOURCE -> raw record -> processed example –(push_back)-> dataframe raw_data/file record_t example

Function Documentation

◆ from_weka()

domain_t ultra::src::from_weka ( const std::string & n)
nodiscard
Parameters
[in]nthe name of a weka domain
Returns
the internal id corresponding to the weka-domain n (D_VOID if unknown / not managed)

◆ label()

class_t ultra::src::label ( const example & e)
nodiscard

Gets the class_t ID (aka label) for a given example.

Parameters
[in]ean example
Returns
the label of the example
Warning
Used only in classification tasks.

◆ label_as()

template<class T>
T ultra::src::label_as ( const src::example & e)
nodiscard

Get the output value for a given example.

Template Parameters
Tthe result is casted to type T
Parameters
[in]ean example
Returns
the output value for the given example