utils

package
v0.0.0-...-51fb139 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accuracy

func Accuracy(y, pred []float64) float64

func DotProduct

func DotProduct(X *mat64.Dense, Y *mat64.Vector) *mat64.Dense

func Log

func Log(X *mat64.Dense) *mat64.Dense

func Plot

func Plot(x [][]float64, y []float64, plotFile string) (err error)

func PlotWithPredictions

func PlotWithPredictions(x [][]float64, y, pred []float64, plotFile string) (err error)

func ReadCSV

func ReadCSV(fileName string) (x [][]float64, y []float64, err error)

func SigmoidMatrix

func SigmoidMatrix(X *mat64.Dense) *mat64.Dense

Apply simoid function on every element of the matrix

func Subtract

func Subtract(x float64, A *mat64.Dense) *mat64.Dense

Types

This section is empty.

Jump to

Keyboard shortcuts

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