Feat C++ API
A feature engineering automation tool
FT::Dat::DataRef Class Reference

#include <data.h>

Collaboration diagram for FT::Dat::DataRef:

Public Member Functions

 DataRef ()
 
 ~DataRef ()
 
 DataRef (MatrixXf &X, VectorXf &y, LongData &Z, bool c=false, vector< bool > protect=vector< bool >())
 
void init (MatrixXf &X, VectorXf &y, LongData &Z, bool c=false, vector< bool > protect=vector< bool >())
 
void setOriginalData (MatrixXf &X, VectorXf &y, LongData &Z, bool c=false, vector< bool > protect=vector< bool >())
 
void setOriginalData (Data *d)
 
void setTrainingData (MatrixXf &X_t, VectorXf &y_t, LongData &Z_t, bool c=false, vector< bool > protect=vector< bool >())
 
void setTrainingData (Data *d, bool toDelete=false)
 
void setValidationData (MatrixXf &X_v, VectorXf &y_v, LongData &Z_v, bool c=false, vector< bool > protect=vector< bool >())
 
void setValidationData (Data *d)
 
void shuffle_data ()
 shuffles original data More...
 
void split_stratified (float split)
 split classification data as stratas More...
 
void train_test_split (bool shuffle, float split)
 splits data into training and validation folds. More...
 
void split_longitudinal (LongData &Z, LongData &Z_t, LongData &Z_v, float split)
 
void reorder_longitudinal (vector< ArrayXf > &vec1, const vector< int > &order)
 reordering utility for shuffling longitudinal data. More...
 

Public Attributes

Datao = NULL
 
Datav = NULL
 
Datat = NULL
 

Private Attributes

bool oCreated
 
bool tCreated
 
bool vCreated
 
MatrixXf X_t
 
MatrixXf X_v
 
VectorXf y_t
 
VectorXf y_v
 
LongData Z_t
 
LongData Z_v
 
bool classification
 

Detailed Description

Definition at line 73 of file data.h.

Constructor & Destructor Documentation

◆ DataRef() [1/2]

FT::Dat::DataRef::DataRef ( )

Definition at line 114 of file data.cc.

◆ ~DataRef()

FT::Dat::DataRef::~DataRef ( )

Definition at line 145 of file data.cc.

◆ DataRef() [2/2]

FT::Dat::DataRef::DataRef ( MatrixXf &  X,
VectorXf &  y,
LongData Z,
bool  c = false,
vector< bool >  protect = vector<bool>() 
)

Definition at line 121 of file data.cc.

Member Function Documentation

◆ init()

void FT::Dat::DataRef::init ( MatrixXf &  X,
VectorXf &  y,
LongData Z,
bool  c = false,
vector< bool >  protect = vector<bool>() 
)

Definition at line 127 of file data.cc.

◆ reorder_longitudinal()

void FT::Dat::DataRef::reorder_longitudinal ( vector< ArrayXf > &  vec1,
const vector< int > &  order 
)

reordering utility for shuffling longitudinal data.

Definition at line 432 of file data.cc.

◆ setOriginalData() [1/2]

void FT::Dat::DataRef::setOriginalData ( Data d)

Definition at line 181 of file data.cc.

◆ setOriginalData() [2/2]

void FT::Dat::DataRef::setOriginalData ( MatrixXf &  X,
VectorXf &  y,
LongData Z,
bool  c = false,
vector< bool >  protect = vector<bool>() 
)

Definition at line 166 of file data.cc.

◆ setTrainingData() [1/2]

void FT::Dat::DataRef::setTrainingData ( Data d,
bool  toDelete = false 
)

Definition at line 205 of file data.cc.

◆ setTrainingData() [2/2]

void FT::Dat::DataRef::setTrainingData ( MatrixXf &  X_t,
VectorXf &  y_t,
LongData Z_t,
bool  c = false,
vector< bool >  protect = vector<bool>() 
)

Definition at line 195 of file data.cc.

◆ setValidationData() [1/2]

void FT::Dat::DataRef::setValidationData ( Data d)

Definition at line 222 of file data.cc.

◆ setValidationData() [2/2]

void FT::Dat::DataRef::setValidationData ( MatrixXf &  X_v,
VectorXf &  y_v,
LongData Z_v,
bool  c = false,
vector< bool >  protect = vector<bool>() 
)

Definition at line 214 of file data.cc.

◆ shuffle_data()

void FT::Dat::DataRef::shuffle_data ( )

shuffles original data

Definition at line 228 of file data.cc.

◆ split_longitudinal()

void FT::Dat::DataRef::split_longitudinal ( LongData Z,
LongData Z_t,
LongData Z_v,
float  split 
)

Definition at line 401 of file data.cc.

◆ split_stratified()

void FT::Dat::DataRef::split_stratified ( float  split)

split classification data as stratas

Definition at line 272 of file data.cc.

◆ train_test_split()

void FT::Dat::DataRef::train_test_split ( bool  shuffle,
float  split 
)

splits data into training and validation folds.

Definition at line 362 of file data.cc.

Member Data Documentation

◆ classification

bool FT::Dat::DataRef::classification
private

Definition at line 87 of file data.h.

◆ o

Data* FT::Dat::DataRef::o = NULL

Definition at line 91 of file data.h.

◆ oCreated

bool FT::Dat::DataRef::oCreated
private

Definition at line 76 of file data.h.

◆ t

Data* FT::Dat::DataRef::t = NULL

Definition at line 93 of file data.h.

◆ tCreated

bool FT::Dat::DataRef::tCreated
private

Definition at line 77 of file data.h.

◆ v

Data* FT::Dat::DataRef::v = NULL

Definition at line 92 of file data.h.

◆ vCreated

bool FT::Dat::DataRef::vCreated
private

Definition at line 78 of file data.h.

◆ X_t

MatrixXf FT::Dat::DataRef::X_t
private

Definition at line 80 of file data.h.

◆ X_v

MatrixXf FT::Dat::DataRef::X_v
private

Definition at line 81 of file data.h.

◆ y_t

VectorXf FT::Dat::DataRef::y_t
private

Definition at line 82 of file data.h.

◆ y_v

VectorXf FT::Dat::DataRef::y_v
private

Definition at line 83 of file data.h.

◆ Z_t

LongData FT::Dat::DataRef::Z_t
private

Definition at line 84 of file data.h.

◆ Z_v

LongData FT::Dat::DataRef::Z_v
private

Definition at line 85 of file data.h.


The documentation for this class was generated from the following files: