online

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Online

type Online struct {
	NetworkInput        int
	NetworkLayer        []int
	NetworkOutput       int
	Data                *learn.Set
	Network             *neural.Network
	LastEvaluation      *evaluation.Evaluation
	Verbose             bool
	Usage               neural.NetworkType
	AddedPoints         int
	RegressionThreshold float64
}

Online contains every necessary for starting the engine

func NewOnline

func NewOnline(usage neural.NetworkType, inputs int, hiddenLayer []int, data *learn.Set) *Online

NewOnline creates a new Engine object

func (*Online) Init

func (o *Online) Init() float64

Init initializes the online learner with a short learning upfront

func (*Online) Inject

func (o *Online) Inject(sample *learn.Sample, force bool) error

Inject tries to inject a new data point into the neural net

func (*Online) Iterate

func (o *Online) Iterate() float64

Iterate iterates over the data set and applies continous learning

func (*Online) SetVerbose

func (o *Online) SetVerbose(verbose bool)

SetVerbose sets the verbose version meaning debug and evaluation logs

Jump to

Keyboard shortcuts

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