trainer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEvaluateFunc

func NewEvaluateFunc(net feedforward.FeedforwardNetwork, length int, significance byte, succ *int, dstmodel *string,
	testFunc func(portion int, h EvaluateFuncHasher) int) func() (int, [32]byte)

func NewLoopFunc

func NewLoopFunc(net feedforward.FeedforwardNetwork, succ *int, treshold int, evaluate func() (int, [32]byte), trainWorst func([]int, int) (undo func())) func()

func NewTrainWorstFunc

func NewTrainWorstFunc(net feedforward.FeedforwardNetwork, minpremodulo, premodulo, maxpremodulo *int,
	tallyFunc func(w []int, t datasets.AnyTally)) func(worst []int, succ int) (undo func())

func Resume

func Resume(net feedforward.FeedforwardNetwork, resume *bool, dstmodel *string)

Types

type EvaluateFuncHasher

type EvaluateFuncHasher interface {
	MustPutUint16(n int, value uint16)
	Sum() [32]byte
}

Jump to

Keyboard shortcuts

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