linear

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2022 License: MIT Imports: 9 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL