Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
Brush::Data Namespace Reference

namespace containing Data structures used in Brush More...

Classes

class  Dataset
 holds variable type data. More...
 
struct  OmopData
 
struct  TimeSeries
 Stores time series data and implements operators over it. More...
 

Typedefs

typedef TimeSeries< boolTimeSeriesb
 TimeSeries convenience typedefs.
 
typedef TimeSeries< intTimeSeriesi
 
typedef TimeSeries< floatTimeSeriesf
 
typedef TimeSeries< bJetTimeSeriesbJet
 
typedef TimeSeries< iJetTimeSeriesiJet
 
typedef TimeSeries< fJetTimeSeriesfJet
 
typedef std::variant< ArrayXb, ArrayXi, ArrayXf, ArrayXXb, ArrayXXi, ArrayXXf, TimeSeriesb, TimeSeriesi, TimeSeriesf, ArrayXbJet, ArrayXiJet, ArrayXfJet, ArrayXXbJet, ArrayXXiJet, ArrayXXfJet, TimeSeriesbJet, TimeSeriesiJet, TimeSeriesfJetState
 defines the possible types of data flowing thru nodes.
 

Enumerations

enum class  TimeValues { offset , delta , timestamp }
 
enum class  StringFeatures { categorical , onehot }
 

Functions

DataType StateType (const State &arg)
 
State check_type (const ArrayXf &x)
 determines data types of columns of matrix X.
 
template<typename StateRef >
State cast_type (const ArrayXf &x, const StateRef &x_ref)
 
ostream & operator<< (ostream &os, DataType dt)
 
Dataset read_csv (const std::string &path, const std::string &target, char sep)
 read csv file into Data.
 

Variables

std::vector< DataTypeStateTypes
 

Detailed Description

namespace containing Data structures used in Brush

Typedef Documentation

◆ State

defines the possible types of data flowing thru nodes.

Definition at line 140 of file types.h.

◆ TimeSeriesb

TimeSeries convenience typedefs.

Definition at line 110 of file types.h.

◆ TimeSeriesbJet

◆ TimeSeriesf

◆ TimeSeriesfJet

◆ TimeSeriesi

Definition at line 111 of file types.h.

◆ TimeSeriesiJet

Enumeration Type Documentation

◆ StringFeatures

Enumerator
categorical 
onehot 

Definition at line 28 of file omop.h.

◆ TimeValues

Enumerator
offset 
delta 
timestamp 

Definition at line 22 of file omop.h.

Function Documentation

◆ cast_type()

template<typename StateRef >
State Brush::Data::cast_type ( const ArrayXf & x,
const StateRef & x_ref )

Definition at line 106 of file data.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_type()

State Brush::Data::check_type ( const ArrayXf & x)

determines data types of columns of matrix X.

Definition at line 68 of file data.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<()

ostream & Brush::Data::operator<< ( ostream & os,
DataType dt )

Definition at line 333 of file data.cpp.

Here is the call graph for this function:

◆ read_csv()

Dataset Brush::Data::read_csv ( const std::string & path,
const std::string & target,
char sep )

read csv file into Data.

Definition at line 14 of file io.cpp.

Here is the call graph for this function:

◆ StateType()

DataType Brush::Data::StateType ( const State & arg)

Definition at line 64 of file data.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ StateTypes

std::vector<DataType> Brush::Data::StateTypes
Initial value:
= {
DataType::ArrayB,
DataType::ArrayI,
DataType::ArrayF,
DataType::MatrixB,
DataType::MatrixI,
DataType::MatrixF,
DataType::TimeSeriesB,
DataType::TimeSeriesI,
DataType::TimeSeriesF
}

Definition at line 51 of file data.cpp.