pb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetActivator

func (x *Layer) GetActivator() string

func (*Layer) GetNodes

func (x *Layer) GetNodes() int32

func (*Layer) ProtoMessage

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect

func (x *Layer) ProtoReflect() protoreflect.Message

func (*Layer) Reset

func (x *Layer) Reset()

func (*Layer) String

func (x *Layer) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Matrix.ProtoReflect.Descriptor instead.

func (*Matrix) GetColumns

func (x *Matrix) GetColumns() int32

func (*Matrix) GetData

func (x *Matrix) GetData() []float64

func (*Matrix) GetRows

func (x *Matrix) GetRows() int32

func (*Matrix) ProtoMessage

func (*Matrix) ProtoMessage()

func (*Matrix) ProtoReflect

func (x *Matrix) ProtoReflect() protoreflect.Message

func (*Matrix) Reset

func (x *Matrix) Reset()

func (*Matrix) String

func (x *Matrix) String() string

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

Jump to

Keyboard shortcuts

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