memorylearning

package module
v0.0.0-...-af06e4b Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 3 Imported by: 0

README

memoryLearning

machine learning golang library using the imaginary parts of complex numbers to represent the memory of a model.

This library is to be used on types of data that have a natural ordering. An example ordering would be ordering events temporally. Each data point would be represented as a vector (in golang a slice) of float64. An initial transformation of the data would generate a configured number of data points. These data points would be combined with a vector of values of the same size. This combination results in a vector of complex numbers. The real component comes from the input data and the imaginary part comes from the internal state of the model. After a nueral network tranforms the complex vector, the output vector comes from a final standard nueral network layer on just the real part of the complex vector. The imaginary component is saved to be used on the next input data.

The imaginary data is used to act as a kind of memory in the model. This does mean that training the model will require the data to be presented in a complete sequence instead of a random sampling so that the internal memory can be correctly trained.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func (*Model) Predict

func (m *Model) Predict(data []float64) []float64

func (*Model) Reset

func (m *Model) Reset()

Jump to

Keyboard shortcuts

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