Skip to content

Instantly share code, notes, and snippets.

@zoq

zoq/lr.cpp Secret

Created June 8, 2021 19:55
Show Gist options
  • Save zoq/5b2ea05ad0719d5a95e4a14b0aa2c09d to your computer and use it in GitHub Desktop.
Save zoq/5b2ea05ad0719d5a95e4a14b0aa2c09d to your computer and use it in GitHub Desktop.
lr.cpp
#include <mlpack/methods/linear_regression/linear_regression.hpp>
using namespace mlpack;
using namespace mlpack::regression;
arma::rowvec responses(10);
arma::mat predictors(3, 10);
LinearRegression lr(predictors, responses, 0.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment