You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/alessandrobessi/fast-linear-regression.git
cd fast-linear-regression
cd src
make
make clean
Usage:
Generate sample data. The following command produces two csv files:
X_train.csv: a matrix of dimensions (num_examples, num_features) with training examples
y_train.csv: a matrix of dimensions (num_examples, 1) with training labels
./fast-lr generate [num_features] [num_examples]
Fit a linear regression model. The following command estimates the linear regression coefficients starting from two csv file, one containing the training examples and the other one containing the training labels.
./fast-lr fit [X_train_csv_file] [y_train_csv_file] [--verbose] [--with-intercept]
Predict. The following command predicts y values using two csv file, one containing training examples and the other one containing linear regression coefficients.