online

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 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 Config added in v0.2.5

type Config struct {
	FirstShots          int
	HotShotBoost        float64
	TrainingSplit       float64
	MinimumDataPoints   int
	MinEpochs           int
	MaxEpochs           int
	MinLearningSpeed    float64
	MaxLearningSpeed    float64
	InitialFMeasure     float64
	MaxInitLoops        int
	RegressionThreshold float64
}

Config has all the learning configurations necessary to learn the network online

func DefaultConfig added in v0.2.5

func DefaultConfig() *Config

DefaultConfig returns the default config for the online learner

type Online

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

Online contains every necessary for starting the engine

func NewOnline

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

NewOnline creates a new Engine object

func (*Online) GetConfig added in v0.2.5

func (o *Online) GetConfig() *Config

GetConfig returns the current online learner configuration

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) SetConfig added in v0.2.5

func (o *Online) SetConfig(cfg *Config)

SetConfig sets a new config from outside for the online learner

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