fork download
  1.  
  2. #include <mlpack/methods/linear_regression/linear_regression.hpp>
  3. using namespace mlpack::regression;
  4. arma::mat data;
  5. arma::vec responses;
  6. int main()
  7. {
  8. mlpack::data::Load("AirPassengers.csv", data);
  9. LinearRegression lr(data, responses, 0);
  10. arma::vec parameters = lr.Parameters();
  11. mlpack::data::Save("dataset.csv",parameters);
  12. //
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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.
stdout
Standard output is empty