Documentation ¶
Overview ¶
Package linear provides linear regression model implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithGradientDescent ¶
func WithGradientDescent(o options.Options) regression.Regression[float64]
WithGradientDescent initializes linear regression with numerical approach. It finds the value of coefficients by taking steps in each iteration towards the minimum of a cost function (LMS).
func WithNormalEquation ¶
func WithNormalEquation() regression.Regression[float64]
WithNormalEquation initializes linear regression with analytical approach. It directly finds the value of coefficients by solving normal equation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.