ai_models

package
v0.0.0-...-e2d08be Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NeuralNetwork

type NeuralNetwork struct {
	// contains filtered or unexported fields
}

NeuralNetwork represents a neural network model

func NewNeuralNetwork

func NewNeuralNetwork(numInputs, numHiddenLayers, numNeuronsPerHiddenLayer, numOutputs int) *NeuralNetwork

NewNeuralNetwork creates a new instance of the neural network

func (*NeuralNetwork) Predict

func (nn *NeuralNetwork) Predict(x mat.Matrix) mat.Matrix

Predict makes a prediction using the trained neural network

func (*NeuralNetwork) Train

func (nn *NeuralNetwork) Train(X, y mat.Matrix) error

Train trains the neural network using the provided training data

Jump to

Keyboard shortcuts

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