Documentation
¶
Overview ¶
Package ridge implements ridge regression.
Index ¶
Constants ¶
View Source
const BasicallyZero = 1.0e-15
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RidgeRegression ¶
type RidgeRegression struct {
X *mat.Dense
XSVD *mat.SVD
U *mat.Dense
D *mat.Dense
V *mat.Dense
XScaled *mat.Dense
Y *mat.VecDense
Scales *mat.VecDense
L2Penalty float64
Coefficients *mat.VecDense
Fitted []float64
Residuals []float64
StdErrs []float64
}
func (*RidgeRegression) Regress ¶
func (r *RidgeRegression) Regress()
Regress runs the ridge regression to calculate coefficients.
Click to show internal directories.
Click to hide internal directories.
