gd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gd provides gradient descent implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(o options.Options, h Hyphothesis, c CostFunc, x [][]float64, y []float64) ([]float64, error)

Run runs gradient descent algorithm.

Types

type CostFunc

type CostFunc func(x [][]float64, y []float64, coeffs []float64) (float64, error)

CostFunc is a function template for cost function used in gradient descent algorithm.

type Hyphothesis

type Hyphothesis func(x []float64, coeffs []float64) (float64, error)

Hyphothesis is a function template for a hyphothesis function used in gradient descent algorithm.

Jump to

Keyboard shortcuts

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