stack

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	nn.BaseModel
	Layers []nn.StandardModel
}

Model contains the sub-models.

func Make added in v0.2.0

func Make(size int, callback func(i int) nn.StandardModel) *Model

Make makes a new model by obtaining each layer with a callback.

func New

func New(layers ...nn.StandardModel) *Model

New returns a new model.

func (*Model) Forward added in v0.2.0

func (m *Model) Forward(xs ...ag.Node) []ag.Node

Forward performs the forward step for each input node and returns the result.

func (*Model) LastLayer

func (m *Model) LastLayer() nn.Model

LastLayer returns the last layer from the stack.

Jump to

Keyboard shortcuts

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