logreg

package
v0.0.0-...-693ff27 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accuracy

func Accuracy(x, theta, y mat.Matrix) (float64, []int)

Accuracy computes the accuracy of x and theta predicting y. It also returns a list of the misspredicted rows.

func Fit

func Fit(ctx context.Context, x, y mat.Matrix) mat.Matrix

func HotDecode

func HotDecode(m mat.Matrix) mat.Matrix

func HotEncode

func HotEncode(m mat.Matrix, k int) mat.Matrix

func Predict

func Predict(x, theta mat.Matrix) mat.Matrix

Predict computes the prediction of labels given x and theta.

Types

This section is empty.

Jump to

Keyboard shortcuts

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