cnnutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package cnnutil contains various utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxMin

func MaxMin(w []float64) (maxi int, maxv float64, mini int, minv, dv float64)

returns min, max and indices of an array

Types

type Window

type Window struct {
	// contains filtered or unexported fields
}

Window stores _size_ number of values and returns averages. Useful for keeping running track of validation or training accuracy during SGD

func NewWindow

func NewWindow(size, minsize int) *Window

func (*Window) Add

func (w *Window) Add(x float64)

func (*Window) Average

func (w *Window) Average() float64

func (*Window) Reset

func (w *Window) Reset()

Jump to

Keyboard shortcuts

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