Description Usage Arguments Details Value Examples
Uses cross-validation to find a good weighting of regularization
1 |
y |
Dependent variable |
x |
Independent variable(s) in array form |
partitions |
Number of partitions to divide the data into (n for n-fold validation) |
degree |
Degree of polynomial to fit |
lambda |
Vector of lambda weightings to try |
Splits the data into the number of partitions specified then attempts a fit on each partition, and calculates the error of the fit on the remaining data.
A list of the the best lambda
value, and its fit (includes coefficients and error).
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.