mlpack_linear_regression(1) - Linux man page
Name
linear_regression - simple linear regression prediction
Synopsis
linear_regression [-h] [-v] [-i string] [-r string] [-m string] [-o string] [-p string] [-t string]
Description
An implementation of simple linear regression using ordinary least squares. This solves the problem
y = X * b + ewhere X (--input_file) and y (the last row of --input_file, or --input_responses) are known and b is the desired variable. The calculated b is saved to disk (--output_file).
Optionally, the calculated value of b is used to predict the responses for another matrix X' (--test_file):
y' = X' * band these predicted responses, y', are saved to a file (--output_predictions).
Required Options
Options
--help (-h)
- Default help info.
- --info [string]
- Get help on a specific module or option. Default value ''.
- --input_file (-i) [string]
- File containing X (regressors). Default value ''.
- --input_responses (-r) [string]
- Optional file containing y (responses). If not given, the responses are assumed to be the last row of the input file. Default value ''.
- --model_file (-m) [string]
- File containing existing model (parameters). Default value ''.
- --output_file (-o) [string]
- File where parameters (b) will be saved. Default value 'parameters.csv'.
- --output_predictions (-p) [string]
- If --test_file is specified, this file is where the predicted responses will be saved. Default value 'predictions.csv'.
- --test_file (-t) [string]
- File containing X' (test regressors). Default value ''.
- --verbose (-v)
- Display informational messages and the full list of parameters and timers at the end of execution.
Additional Information
For further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your distribution of MLPACK.