Description Usage Arguments Details Value Examples
Run a linear regression (with optional ridge regression)
1 | linearRegression(matX, vecY, lambda = 0, intercept = TRUE)
|
matX |
A matrix of explanatory variables ('predictors') in standard R format (i.e. ‘tall and skinny'’ to be transposed internally to MLPACK format (i.e. '‘short and wide’). |
vecY |
A vector of dependent variables ('responses') |
lambda |
An optional ridge parameter, defaults to zero |
intercept |
An optional boolean switch about an intercept, default is true. |
This function performs a linear regression, and serves as a simple test case for accessing an MLPACK function.
A vector with fitted values
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.