rubiks

package
v0.0.0-...-d6a0867 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prediction

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

Prediction is the based type that can be used as a training dataset

func NewPrediction

func NewPrediction(input string, runeToIdx func(r rune) (int, error), sampleSize, vocabSize int) *Prediction

NewPrediction return an object suitable for the LSTM

func (*Prediction) GetOutput

func (p *Prediction) GetOutput() [][]float32

GetOutput ...

func (*Prediction) Read

func (p *Prediction) Read() ([]float32, error)

Float32Read ...

func (*Prediction) Write

func (p *Prediction) Write(val []float32) error

Float32Write ...

type TrainingSet

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

func NewTrainingSet

func NewTrainingSet() *TrainingSet

NewTrainingSet from a ReadSeeker

func (*TrainingSet) GetTrainer

func (t *TrainingSet) GetTrainer() (datasetter.Trainer, error)

Jump to

Keyboard shortcuts

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