Documentation
¶
Index ¶
- Variables
- type Layer
- type Matrix
- func (*Matrix) Descriptor() ([]byte, []int)deprecated
- func (x *Matrix) GetColumns() int32
- func (x *Matrix) GetData() []float64
- func (x *Matrix) GetRows() int32
- func (*Matrix) ProtoMessage()
- func (x *Matrix) ProtoReflect() protoreflect.Message
- func (x *Matrix) Reset()
- func (x *Matrix) String() string
- type NeuralNetwork
- func (*NeuralNetwork) Descriptor() ([]byte, []int)deprecated
- func (x *NeuralNetwork) GetActivations() []*Matrix
- func (x *NeuralNetwork) GetBiases() []*Matrix
- func (x *NeuralNetwork) GetDebugMode() bool
- func (x *NeuralNetwork) GetLayers() []*Layer
- func (x *NeuralNetwork) GetLearningRate() float64
- func (x *NeuralNetwork) GetLoss() string
- func (x *NeuralNetwork) GetWeights() []*Matrix
- func (*NeuralNetwork) ProtoMessage()
- func (x *NeuralNetwork) ProtoReflect() protoreflect.Message
- func (x *NeuralNetwork) Reset()
- func (x *NeuralNetwork) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_goneural_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
Nodes int32 `protobuf:"varint,1,opt,name=Nodes,json=nodes,proto3" json:"Nodes,omitempty"`
Activator string `protobuf:"bytes,2,opt,name=Activator,json=activator,proto3" json:"Activator,omitempty"` // TODO: store the struct along with configuration
// contains filtered or unexported fields
}
func (*Layer) Descriptor
deprecated
func (*Layer) GetActivator ¶
func (*Layer) ProtoMessage ¶
func (*Layer) ProtoMessage()
func (*Layer) ProtoReflect ¶
func (x *Layer) ProtoReflect() protoreflect.Message
type Matrix ¶
type Matrix struct {
Rows int32 `protobuf:"varint,1,opt,name=Rows,json=rows,proto3" json:"Rows,omitempty"`
Columns int32 `protobuf:"varint,2,opt,name=Columns,json=columns,proto3" json:"Columns,omitempty"`
Data []float64 `protobuf:"fixed64,3,rep,packed,name=Data,json=data,proto3" json:"Data,omitempty"` // flattened 2D array
// contains filtered or unexported fields
}
func (*Matrix) Descriptor
deprecated
func (*Matrix) GetColumns ¶
func (*Matrix) ProtoMessage ¶
func (*Matrix) ProtoMessage()
func (*Matrix) ProtoReflect ¶
func (x *Matrix) ProtoReflect() protoreflect.Message
type NeuralNetwork ¶
type NeuralNetwork struct {
Weights []*Matrix `protobuf:"bytes,1,rep,name=Weights,json=weights,proto3" json:"Weights,omitempty"`
Biases []*Matrix `protobuf:"bytes,2,rep,name=Biases,json=biases,proto3" json:"Biases,omitempty"`
Activations []*Matrix `protobuf:"bytes,3,rep,name=Activations,json=activations,proto3" json:"Activations,omitempty"`
LearningRate float64 `protobuf:"fixed64,4,opt,name=LearningRate,json=learningRate,proto3" json:"LearningRate,omitempty"`
Layers []*Layer `protobuf:"bytes,5,rep,name=Layers,json=layers,proto3" json:"Layers,omitempty"`
DebugMode bool `protobuf:"varint,6,opt,name=DebugMode,json=debugMode,proto3" json:"DebugMode,omitempty"`
Loss string `protobuf:"bytes,7,opt,name=Loss,json=loss,proto3" json:"Loss,omitempty"`
// contains filtered or unexported fields
}
func (*NeuralNetwork) Descriptor
deprecated
func (*NeuralNetwork) Descriptor() ([]byte, []int)
Deprecated: Use NeuralNetwork.ProtoReflect.Descriptor instead.
func (*NeuralNetwork) GetActivations ¶
func (x *NeuralNetwork) GetActivations() []*Matrix
func (*NeuralNetwork) GetBiases ¶
func (x *NeuralNetwork) GetBiases() []*Matrix
func (*NeuralNetwork) GetDebugMode ¶
func (x *NeuralNetwork) GetDebugMode() bool
func (*NeuralNetwork) GetLayers ¶
func (x *NeuralNetwork) GetLayers() []*Layer
func (*NeuralNetwork) GetLearningRate ¶
func (x *NeuralNetwork) GetLearningRate() float64
func (*NeuralNetwork) GetLoss ¶
func (x *NeuralNetwork) GetLoss() string
func (*NeuralNetwork) GetWeights ¶
func (x *NeuralNetwork) GetWeights() []*Matrix
func (*NeuralNetwork) ProtoMessage ¶
func (*NeuralNetwork) ProtoMessage()
func (*NeuralNetwork) ProtoReflect ¶
func (x *NeuralNetwork) ProtoReflect() protoreflect.Message
func (*NeuralNetwork) Reset ¶
func (x *NeuralNetwork) Reset()
func (*NeuralNetwork) String ¶
func (x *NeuralNetwork) String() string
Click to show internal directories.
Click to hide internal directories.