|
Learning Curve Plus Plus (LCPP)
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| template<class T > | |
| T | data::SetDiff (const T &check, const T &with) |
| template<typename T , typename U > | |
| void | data::Migrate (arma::Mat< T > &train_inp, arma::Row< U > &train_lab, arma::Mat< T > &test_inp, arma::Row< U > &test_lab, const size_t N) |
| template<typename T , typename U > | |
| void | data::Migrate (arma::Mat< T > &train_inp, arma::Mat< U > &train_lab, arma::Mat< T > &test_inp, arma::Mat< U > &test_lab, const size_t N) |
| template<typename T > | |
| void | data::Migrate (T &trainset, T &testset, const size_t N) |
| template<typename T = arma::uword> | |
| void | data::Migrate (arma::Col< T > &trainset, arma::Col< T > &testset, const size_t N) |
| template<typename T , typename U > | |
| void | data::Split (const arma::Mat< T > &input, const arma::Row< U > &inputLabel, arma::Mat< T > &trainData, arma::Mat< T > &testData, arma::Row< U > &trainLabel, arma::Row< U > &testLabel, const size_t trainNum) |
| template<typename T , typename U > | |
| void | data::Split (const arma::Mat< T > &input, const arma::Mat< U > &inputLabel, arma::Mat< T > &trainData, arma::Mat< T > &testData, arma::Mat< U > &trainLabel, arma::Mat< U > &testLabel, const size_t trainNum) |
| template<typename T > | |
| void | data::Split (const arma::Mat< T > &input, arma::Mat< T > &trainData, arma::Mat< T > &testData, const size_t trainNum) |
| template<typename T > | |
| void | data::Split (const arma::Row< T > &input, arma::Row< T > &trainData, arma::Row< T > &testData, const size_t trainNum) |
| template<typename T > | |
| void | data::Split (const arma::Col< T > &input, arma::Col< T > &trainData, arma::Col< T > &testData, const size_t trainNum) |
| template<typename T , typename U > | |
| std::tuple< arma::Mat< T >, arma::Mat< T >, arma::Row< U >, arma::Row< U > > | data::Split (const arma::Mat< T > &input, const arma::Row< U > &inputLabel, const size_t trainNum) |
| template<typename T , typename U > | |
| std::tuple< arma::Mat< T >, arma::Mat< T >, arma::Mat< U >, arma::Mat< U > > | data::Split (const arma::Mat< T > &input, const arma::Mat< U > &inputLabel, const size_t trainNum) |
| template<typename T > | |
| std::tuple< arma::Mat< T >, arma::Mat< T > > | data::Split (const arma::Mat< T > &input, const size_t trainNum) |
| template<typename T > | |
| void | data::Split (const T &dataset, T &trainset, T &testset, const size_t trainNum) |
| template<typename T , class O = DTYPE> | |
| void | data::Split (const T &dataset, T &trainset, T &testset, const O testRatio) |
| template<typename T , typename LabelsType , typename = std::enable_if_t<arma::is_arma_type<LabelsType>::value>> | |
| void | data::StratifiedSplit (const arma::Mat< T > &input, const LabelsType &inputLabel, arma::Mat< T > &trainData, arma::Mat< T > &testData, LabelsType &trainLabel, LabelsType &testLabel, const size_t trainNum, const bool shuffleData=true) |
| template<typename T , typename LabelsType , typename = std::enable_if_t<arma::is_arma_type<LabelsType>::value>> | |
| void | data::StratifiedSplit (const arma::Mat< T > &input, const LabelsType &inputLabel, arma::Mat< T > &trainData, arma::Mat< T > &testData, LabelsType &trainLabel, LabelsType &testLabel, const double testRatio, const bool shuffleData=true) |
| template<typename T > | |
| void | data::StratifiedSplit (const T &dataset, T &trainset, T &testset, const size_t trainNum) |
| template<typename T > | |
| void | data::StratifiedSplit (const T &dataset, T &trainset, T &testset, const double testRatio) |
| template<typename T , typename U > | |
| std::tuple< arma::Mat< T >, arma::Mat< T >, arma::Row< U >, arma::Row< U > > | data::StratifiedSplit (const arma::Mat< T > &input, const arma::Row< U > &inputLabel, const size_t trainNum) |
Data manipulation related stuff
Definition in file manip.h.
| void data::Migrate | ( | arma::Mat< T > & | train_inp, |
| arma::Row< U > & | train_lab, | ||
| arma::Mat< T > & | test_inp, | ||
| arma::Row< U > & | test_lab, | ||
| const size_t | N | ||
| ) |
| void data::Migrate | ( | T & | trainset, |
| T & | testset, | ||
| const size_t | N | ||
| ) |
| trainset | : training dataset |
| testset | : testing dataset |
| N | : number of points that to be migrated (test->train) |
Definition at line 118 of file manip.h.
| T data::SetDiff | ( | const T & | check, |
| const T & | with | ||
| ) |
| check | : The vector to be compared |
| with | : Comparison is made with this vector |
Definition at line 23 of file manip.h.
References data::SetDiff().
Referenced by data::SetDiff().
Here is the call graph for this function:
Here is the caller graph for this function:| void data::Split | ( | const arma::Mat< T > & | input, |
| arma::Mat< T > & | trainData, | ||
| arma::Mat< T > & | testData, | ||
| const size_t | trainNum | ||
| ) |
| input | Input dataset to split. |
| trainData | Matrix to store training data into. |
| testData | Matrix to store test data into. |
| trainNum | number of training points desired. |
Definition at line 208 of file manip.h.
References data::Split().
Here is the call graph for this function:| void data::Split | ( | const arma::Mat< T > & | input, |
| const arma::Row< U > & | inputLabel, | ||
| arma::Mat< T > & | trainData, | ||
| arma::Mat< T > & | testData, | ||
| arma::Row< U > & | trainLabel, | ||
| arma::Row< U > & | testLabel, | ||
| const size_t | trainNum | ||
| ) |
| input | Input dataset to split. |
| label | Input labels to split. |
| trainData | Matrix to store training data into. |
| testData | Matrix to store test data into. |
| trainLabel | Vector to store training labels into. |
| testLabel | Vector to store test labels into. |
| trainNum | number of training points desired. |
Definition at line 162 of file manip.h.
References data::Split().
Referenced by data::Split().
Here is the call graph for this function:
Here is the caller graph for this function:| std::tuple<arma::Mat<T>, arma::Mat<T>, arma::Row<U>, arma::Row<U> > data::Split | ( | const arma::Mat< T > & | input, |
| const arma::Row< U > & | inputLabel, | ||
| const size_t | trainNum | ||
| ) |
| input | Input dataset to split. |
| label | Input labels to split. |
| trainNum | number of training points desired. |
Definition at line 257 of file manip.h.
References data::Split().
Here is the call graph for this function:| std::tuple<arma::Mat<T>, arma::Mat<T> > data::Split | ( | const arma::Mat< T > & | input, |
| const size_t | trainNum | ||
| ) |
| input | Input dataset to split. |
| trainNum | number of training points desired. |
Definition at line 302 of file manip.h.
References data::Split().
Here is the call graph for this function:| void data::Split | ( | const T & | dataset, |
| T & | trainset, | ||
| T & | testset, | ||
| const O | testRatio | ||
| ) |
| dataset | to be splitted |
| trainset | to be filled |
| testset | to be filled |
| testRatio | percentage of test set |
Definition at line 344 of file manip.h.
References data::Split().
Here is the call graph for this function:| void data::Split | ( | const T & | dataset, |
| T & | trainset, | ||
| T & | testset, | ||
| const size_t | trainNum | ||
| ) |
| dataset | to be splitted |
| trainset | to be splitted |
| testset | to be splitted |
| trainNum | number of training points |
Definition at line 320 of file manip.h.
References data::Split().
Here is the call graph for this function:| void data::StratifiedSplit | ( | const arma::Mat< T > & | input, |
| const LabelsType & | inputLabel, | ||
| arma::Mat< T > & | trainData, | ||
| arma::Mat< T > & | testData, | ||
| LabelsType & | trainLabel, | ||
| LabelsType & | testLabel, | ||
| const double | testRatio, | ||
| const bool | shuffleData = true |
||
| ) |
Unfortunately mlpack has an issue if you have a balanced dataset, so got it from there with a minor fix
| input | Input dataset to stratify. |
| inputLabel | Input labels to stratify. |
| trainData | Matrix to store training data into. |
| testData | Matrix to store test data into. |
| trainLabel | Vector to store training labels into. |
| testLabel | Vector to store test labels into. |
| testRatio | ratio of test set |
| shuffleData | If true, the sample order is shuffled; otherwise, each sample is visited in linear order. (Default true.) |
Definition at line 480 of file manip.h.
| void data::StratifiedSplit | ( | const arma::Mat< T > & | input, |
| const LabelsType & | inputLabel, | ||
| arma::Mat< T > & | trainData, | ||
| arma::Mat< T > & | testData, | ||
| LabelsType & | trainLabel, | ||
| LabelsType & | testLabel, | ||
| const size_t | trainNum, | ||
| const bool | shuffleData = true |
||
| ) |
| input | Input dataset to stratify. |
| inputLabel | Input labels to stratify. |
| trainData | Matrix to store training data into. |
| testData | Matrix to store test data into. |
| trainLabel | Vector to store training labels into. |
| testLabel | Vector to store test labels into. |
| trainNum | number of training points of dataset to use for test set |
| shuffleData | If true, the sample order is shuffled; otherwise, each sample is visited in linear order. (Default true.) |
Definition at line 377 of file manip.h.
| void data::StratifiedSplit | ( | const T & | dataset, |
| T & | trainset, | ||
| T & | testset, | ||
| const double | testRatio | ||
| ) |
| void data::StratifiedSplit | ( | const T & | dataset, |
| T & | trainset, | ||
| T & | testset, | ||
| const size_t | trainNum | ||
| ) |
Given a dataset, split into a training set and test set with stratification
| dataset | to be splitted |
| trainset | to be splitted |
| testset | to be splitted |
| trainNum | number of training points |
Definition at line 575 of file manip.h.