Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullyConnected ¶
type FullyConnected struct { Weights mat.Matrix Biases vec.Vector // contains filtered or unexported fields }
FullyConnected a fully connected network layer
func InitFC ¶
func InitFC(weights mat.Matrix, biases vec.Vector) *FullyConnected
InitFC initializes a FC layer with the given weights and biases
func NewFC ¶
func NewFC(in, out int) *FullyConnected
NewFC creates a net fully connected layer and initializes the weights using a Gaussian distribution
type Layer ¶
type Layer interface { Forward(x mat.Matrix) mat.Matrix BackProp(t Trainer, partial mat.Matrix) mat.Matrix }
Layer a layer in a neural network
type Net ¶
type Net []Layer
Net a neural network
type ReLU ¶
type ReLU struct {
// contains filtered or unexported fields
}
ReLU ReLU
type SE ¶
type SE struct{}
SE is the squared error struct
type Sigmoid ¶
type Sigmoid struct {
// contains filtered or unexported fields
}
Sigmoid is the sigmoid activation struct
type Softmax ¶
type Softmax struct {
// contains filtered or unexported fields
}
Softmax is the softmax activation struct
Click to show internal directories.
Click to hide internal directories.