Documentation
¶
Overview ¶
Package optimizer provides various optimization algorithms for neural networks.
Package optimizer provides various optimization algorithms for neural networks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdamW ¶
AdamW implements the AdamW optimizer.
type Optimizer ¶
type Optimizer[T tensor.Numeric] interface { Step(ctx context.Context, params []*graph.Parameter[T]) error }
Optimizer defines the interface for optimization algorithms.
type SGD ¶
SGD implements the stochastic gradient descent optimizer.
func NewSGD ¶
func NewSGD[T tensor.Numeric](engine compute.Engine[T], ops numeric.Arithmetic[T], learningRate float32) *SGD[T]
NewSGD creates a new SGD optimizer.
Click to show internal directories.
Click to hide internal directories.