utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: AGPL-3.0 Imports: 7 Imported by: 1 module, 0 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 added in v0.3.0

func Accuracy(prediction, y []float64) float64

func Accuracy32 added in v0.3.0

func Accuracy32(prediction, y []float32) float32

func ConcatSlice

func ConcatSlice(slices ...[]float64) []float64

func ConcatSlice32 added in v0.3.0

func ConcatSlice32(slices ...[]float32) []float32

func Float64toBytes

func Float64toBytes(f float64) []byte

func Int64SeqToIntSeq added in v0.2.0

func Int64SeqToIntSeq(seq []int64) []int

func ParseInt64Seq added in v0.2.0

func ParseInt64Seq(s string) []int64

func RocAuc

func RocAuc(pred, y []float64) float64

func RocAuc32 added in v0.3.0

func RocAuc32(pred, y []float32) float32

Types

type KeyCnt

type KeyCnt struct {
	Key string
	Cnt int
}

func TopNOccurrences

func TopNOccurrences(s []string, n int) []KeyCnt

Jump to

Keyboard shortcuts

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