model

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

func New

func New(net *net.Net, loss loss.Loss, optimizer optimizer.Optimizer) *Model

func (*Model) Layers

func (m *Model) Layers() []layer.Layer

func (*Model) Load

func (m *Model) Load(dir string) error

func (*Model) Loss

func (m *Model) Loss(input, targets mat.Matrix) float64

func (*Model) ParamCount

func (m *Model) ParamCount() uint64

func (*Model) Predict

func (m *Model) Predict(input mat.Matrix) mat.Matrix

func (*Model) Print

func (m *Model) Print()

func (*Model) ReadFrom added in v0.0.2

func (m *Model) ReadFrom(r io.Reader) (int64, error)

func (*Model) Save

func (m *Model) Save(dir string) error

func (*Model) SetLr

func (m *Model) SetLr(lr float64)

func (*Model) SetName

func (m *Model) SetName(name string)

func (*Model) Train

func (m *Model) Train(input mat.Matrix, targets mat.Matrix)

func (*Model) WriteTo added in v0.0.2

func (m *Model) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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