contract

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGenerator

type BatchGenerator interface {
	Reset()
	Count() int
	HasNext() bool
	NextBatch() (xs []tensor.Tensor, y tensor.Tensor, err error)
}

type Layer

type Layer interface {
	Forward(xs ...tensor.Tensor) (y tensor.Tensor, err error)
}

type Loss

type Loss interface {
	Compute(yp tensor.Tensor, yt tensor.Tensor) (l tensor.Tensor, err error)
}

type Metric

type Metric interface {
	Accumulate(yp tensor.Tensor, yt tensor.Tensor) (err error)
	Result() float64
}

type Optimizer

type Optimizer interface {
	Update(weight *tensor.Tensor) (err error)
}

type WeightedLayer

type WeightedLayer interface {
	Layer
	Weights() []layers.Weight
}

Jump to

Keyboard shortcuts

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