network

package
v0.0.0-...-6a15580 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataArray

type DataArray []float64

type Network

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

func Load

func Load(path string) (nt *Network, err error)

func NewNetwork

func NewNetwork(inputSize int, outputSize int, activation activation.IActivation) (nt *Network, err error)

func (*Network) AddLayer

func (nt *Network) AddLayer(size int, activation activation.IActivation) error

AddLayer - Add single hidden layer

func (*Network) Save

func (nt *Network) Save(path string) (err error)

func (*Network) SetProps

func (nt *Network) SetProps(props Props)

SetProps - Self defined

func (*Network) Test

func (nt *Network) Test(input DataArray) (DataArray, []int, error)

Test neural network

func (*Network) Train

func (nt *Network) Train(inputs []DataArray, targets []DataArray) error

Train - Train neural network

type Props

type Props struct {
	Loss      loss.ILoss
	Optimizer optimizer.IOptimizer
	ErrLimit  float64
	MaxEpoch  int
}

Network

Jump to

Keyboard shortcuts

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