mlpack
Functions
mock_categorical_data.hpp File Reference

Generate categorical dataset for tests. More...

#include <mlpack/prereqs.hpp>
#include <mlpack/core/dists/discrete_distribution.hpp>
Include dependency graph for mock_categorical_data.hpp:
This graph shows which files directly or indirectly include this file:

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.
 
void MockCategoricalData (arma::mat &d, arma::Row< double > &l, mlpack::data::DatasetInfo &datasetInfo)
 Create a mock categorical dataset for testing regression.
 

Detailed Description

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.