bclass

package
v0.0.0-...-ba2069d Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eye

func Eye(d int) *mat64.Dense

func PolyBasis

func PolyBasis(xpoly, x *mat64.Dense, ind, deg int) *mat64.Dense

func TestResults

func TestResults(predict, test *mat64.Dense) (c, d int)

Types

type GlobalModel

type GlobalModel struct {
	ModelList map[int]Model
	TestSize  map[int]int
	D         int
}

func (GlobalModel) Predict

func (model GlobalModel) Predict(xt *mat64.Dense) *mat64.Dense

type Model

type Model struct {
	W      mat64.Dense
	Deg    int
	Lambda float64
}

func RegLSBasisC

func RegLSBasisC(x, y *mat64.Dense, lambda float64, deg int) Model

func (Model) Predict

func (model Model) Predict(xt *mat64.Dense) *mat64.Dense

func (Model) Print

func (model Model) Print()

Jump to

Keyboard shortcuts

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