#include <data.h>
|
| 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...
|
|
Definition at line 73 of file data.h.
◆ DataRef() [1/2]
FT::Dat::DataRef::DataRef |
( |
| ) |
|
◆ ~DataRef()
FT::Dat::DataRef::~DataRef |
( |
| ) |
|
◆ DataRef() [2/2]
FT::Dat::DataRef::DataRef |
( |
MatrixXf & |
X, |
|
|
VectorXf & |
y, |
|
|
LongData & |
Z, |
|
|
bool |
c = false , |
|
|
vector< bool > |
protect = vector<bool>() |
|
) |
| |
◆ init()
void FT::Dat::DataRef::init |
( |
MatrixXf & |
X, |
|
|
VectorXf & |
y, |
|
|
LongData & |
Z, |
|
|
bool |
c = false , |
|
|
vector< bool > |
protect = vector<bool>() |
|
) |
| |
◆ 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 | ) |
|
◆ setOriginalData() [2/2]
void FT::Dat::DataRef::setOriginalData |
( |
MatrixXf & |
X, |
|
|
VectorXf & |
y, |
|
|
LongData & |
Z, |
|
|
bool |
c = false , |
|
|
vector< bool > |
protect = vector<bool>() |
|
) |
| |
◆ setTrainingData() [1/2]
void FT::Dat::DataRef::setTrainingData |
( |
Data * |
d, |
|
|
bool |
toDelete = false |
|
) |
| |
◆ 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>() |
|
) |
| |
◆ setValidationData() [1/2]
void FT::Dat::DataRef::setValidationData |
( |
Data * |
d | ) |
|
◆ 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>() |
|
) |
| |
◆ shuffle_data()
void FT::Dat::DataRef::shuffle_data |
( |
| ) |
|
shuffles original data
Definition at line 228 of file data.cc.
◆ split_longitudinal()
◆ 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.
◆ classification
bool FT::Dat::DataRef::classification |
|
private |
Data* FT::Dat::DataRef::o = NULL |
◆ oCreated
bool FT::Dat::DataRef::oCreated |
|
private |
Data* FT::Dat::DataRef::t = NULL |
◆ tCreated
bool FT::Dat::DataRef::tCreated |
|
private |
Data* FT::Dat::DataRef::v = NULL |
◆ vCreated
bool FT::Dat::DataRef::vCreated |
|
private |
◆ X_t
MatrixXf FT::Dat::DataRef::X_t |
|
private |
◆ X_v
MatrixXf FT::Dat::DataRef::X_v |
|
private |
◆ y_t
VectorXf FT::Dat::DataRef::y_t |
|
private |
◆ y_v
VectorXf FT::Dat::DataRef::y_v |
|
private |
◆ Z_t
◆ Z_v
The documentation for this class was generated from the following files: