Generate categorical dataset for tests. More...
Go to the source code of this file.
Functions | |
void | MockCategoricalData (arma::mat &d, arma::Row< size_t > &l, mlpack::data::DatasetInfo &datasetInfo) |
Create a mock categorical dataset for testing classification. More... | |
void | MockCategoricalData (arma::mat &d, arma::Row< double > &l, mlpack::data::DatasetInfo &datasetInfo) |
Create a mock categorical dataset for testing regression. More... | |
Generate categorical dataset for tests.
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
Definition in file mock_categorical_data.hpp.
|
inline |
Create a mock categorical dataset for testing classification.
Definition at line 20 of file mock_categorical_data.hpp.
References mlpack::data::categorical, M_PI, DatasetMapper< PolicyType, InputType >::MapString(), mlpack::math::Random(), DiscreteDistribution::Random(), and DatasetMapper< PolicyType, InputType >::Type().
|
inline |
Create a mock categorical dataset for testing regression.
Definition at line 119 of file mock_categorical_data.hpp.
References mlpack::data::categorical, DatasetMapper< PolicyType, InputType >::MapString(), mlpack::math::RandInt(), mlpack::math::Random(), and DatasetMapper< PolicyType, InputType >::Type().