mnist_ann

package
v0.0.0-...-8ed5a8e Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

func MaxLabel

func MaxLabel(r core.Data) int

func MinLabel

func MinLabel(r core.Data) int

func RegisterModel

func RegisterModel(m *core.Model, outputToLabel func(output core.Data) int)

Types

type Context

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

func (Context) Show

func (c Context) Show() error

func (Context) Test

func (c Context) Test() (err error)

func (Context) Train

func (c Context) Train() (err error)

type Profile

type Profile struct {
	Total int
	Hit   int

	Index     int
	Recent    []bool
	RecentHit int
}

func NewProfile

func NewProfile(recent int) *Profile

func (*Profile) Add

func (p *Profile) Add(b bool)

func (*Profile) HitRate

func (p *Profile) HitRate() float64

func (*Profile) RecentHitRate

func (p *Profile) RecentHitRate() float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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