OpenANN
1.1.0
An open source library for artificial neural networks.
|
Functions | |
int | load (Eigen::MatrixXd &in, Eigen::MatrixXd &out, const char *filename, int min_inputs=0) |
Read a libsvm-encoded dataset from the filesystem and load its values into given in- and output matrices. More... | |
int | load (Eigen::MatrixXd &in, Eigen::MatrixXd &out, std::istream &stream, int min_inputs=0) |
Read a libsvm-encoded dataset from any input stream and load its values into given in- and output matrices. More... | |
void | save (const Eigen::MatrixXd &in, const Eigen::MatrixXd &out, const char *filename) |
Export a given dataset represented by in- and output matrices into a libsvm file. More... | |
void | save (const Eigen::MatrixXd &in, const Eigen::MatrixXd &out, std::ostream &stream) |
Write a given dataset from in- and output matrices to an output stream in libsvm format. More... | |
int OpenANN::LibSVM::load | ( | Eigen::MatrixXd & | in, |
Eigen::MatrixXd & | out, | ||
const char * | filename, | ||
int | min_inputs = 0 |
||
) |
Read a libsvm-encoded dataset from the filesystem and load its values into given in- and output matrices.
in | input matrix with an unspecific dimension that will contain the data |
out | output matrix with an unspecific dimension that will contain the data. |
filename | name to the corresponding libsvm dataset file |
min_inputs | sets the minimal numbers of feature for input matrix in |
int OpenANN::LibSVM::load | ( | Eigen::MatrixXd & | in, |
Eigen::MatrixXd & | out, | ||
std::istream & | stream, | ||
int | min_inputs = 0 |
||
) |
Read a libsvm-encoded dataset from any input stream and load its values into given in- and output matrices.
in | input matrix with an unspecific dimension that will contain the data |
out | output matrix with an unspecific dimension that will contain the data. |
stream | general STL data stream for getting libsvm-encoded datasets |
min_inputs | sets the minimal numbers of feature for input matrix in |
void OpenANN::LibSVM::save | ( | const Eigen::MatrixXd & | in, |
const Eigen::MatrixXd & | out, | ||
const char * | filename | ||
) |
Export a given dataset represented by in- and output matrices into a libsvm file.
in | matrix containing all input values (features) |
out | matrix containt all output values (classes, targets) |
filename | name to the generating libsvm dataset file |
void OpenANN::LibSVM::save | ( | const Eigen::MatrixXd & | in, |
const Eigen::MatrixXd & | out, | ||
std::ostream & | stream | ||
) |
Write a given dataset from in- and output matrices to an output stream in libsvm format.
in | matrix containing all input values (features) |
out | matrix containt all output values (classes, targets) |
stream | general STL data stream that will receive libsvm encoded dataset |