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

data holding X, y, and Z data More...

#include <data.h>

Collaboration diagram for FT::Dat::Data:

Public Member Functions

 Data (MatrixXf &X, VectorXf &y, LongData &Z, bool c=false, vector< bool > protect=vector< bool >())
 
void set_validation (bool v=true)
 
void set_protected_groups ()
 
void get_batch (Data &db, int batch_size) const
 select random subset of data for training weights. More...
 

Public Attributes

MatrixXf & X
 
VectorXf & y
 
LongDataZ
 
bool classification
 
bool validation
 
vector< bool > protect
 
map< int, vector< float > > protect_levels
 
vector< int > protected_groups
 
int group_intersections
 
vector< ArrayXbcases
 

Detailed Description

data holding X, y, and Z data

Definition at line 41 of file data.h.

Constructor & Destructor Documentation

◆ Data()

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

Definition at line 19 of file data.cc.

Member Function Documentation

◆ get_batch()

void FT::Dat::Data::get_batch ( Data db,
int  batch_size 
) const

select random subset of data for training weights.

Definition at line 79 of file data.cc.

◆ set_protected_groups()

void FT::Dat::Data::set_protected_groups ( )

Definition at line 29 of file data.cc.

◆ set_validation()

void FT::Dat::Data::set_validation ( bool  v = true)

Definition at line 77 of file data.cc.

Member Data Documentation

◆ cases

vector<ArrayXb> FT::Dat::Data::cases

Definition at line 64 of file data.h.

◆ classification

bool FT::Dat::Data::classification

Definition at line 48 of file data.h.

◆ group_intersections

int FT::Dat::Data::group_intersections

Definition at line 63 of file data.h.

◆ protect

vector<bool> FT::Dat::Data::protect

Definition at line 50 of file data.h.

◆ protect_levels

map<int,vector<float> > FT::Dat::Data::protect_levels

Definition at line 61 of file data.h.

◆ protected_groups

vector<int> FT::Dat::Data::protected_groups

Definition at line 62 of file data.h.

◆ validation

bool FT::Dat::Data::validation

Definition at line 49 of file data.h.

◆ X

MatrixXf& FT::Dat::Data::X

Definition at line 45 of file data.h.

◆ y

VectorXf& FT::Dat::Data::y

Definition at line 46 of file data.h.

◆ Z

LongData& FT::Dat::Data::Z

Definition at line 47 of file data.h.


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