#include <mlpack/methods/linear_regression/linear_regression.hpp>using namespace mlpack::regression;arma::mat data; arma::vec responses; int main(){mlpack::data::Load("AirPassengers.csv", data);LinearRegression lr(data, responses, 0);arma::vec parameters = lr.Parameters();mlpack::data::Save("dataset.csv",parameters);// }
Standard input is empty
prog.cpp:2:66: fatal error: mlpack/methods/linear_regression/linear_regression.hpp: No such file or directory #include <mlpack/methods/linear_regression/linear_regression.hpp> ^ compilation terminated.
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!