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 *mat64.Dense XSVD *mat64.SVD U *mat64.Dense D *mat64.Dense V *mat64.Dense XScaled *mat64.Dense Y *mat64.Vector Scales *mat64.Vector L2Penalty float64 Coefficients *mat64.Vector 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.