network

package
v0.0.0-...-eb36bdb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

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

func New

func New(
	cowId int,
	numOfLayers int,
	sizesOfLayers []int,
	layerTypes []node.NodeType,
	batchSize int,
	learningRate float64,
	inputDim int,
	k []int,
	l []int,
	rangePow []int,
	sparsity []float64,
) *Network

func (*Network) PredictClass

func (ne *Network) PredictClass(
	cowId int,
	examples []dataset.Example,
) (int, *Network)

func (*Network) ProcessInput

func (ne *Network) ProcessInput(
	cowId int,
	examples []dataset.Example,
	iter int,
	rehash bool,
	rebuild bool,
) (float64, *Network)

Jump to

Keyboard shortcuts

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