neutil

package
v0.0.0-...-2a14176 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexOfMax

func IndexOfMax(vs []float64) (imax int)

func IndexOfMin

func IndexOfMin(vs []float64) (imin int)

func MSE

func MSE(a, b []float64) float64

mean squared error https://en.wikipedia.org/wiki/Mean_squared_error

func SoftmaxStable

func SoftmaxStable(xs []float64) []float64

func Variance

func Variance(xs []float64) float64

Types

type Stat

type Stat struct {
	Min      float64
	Max      float64
	Mean     float64
	Variance float64
	RMS      float64 // sqrt(Variance)
}

func CalcStat

func CalcStat(xs []float64) *Stat

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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