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: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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