utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

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