datasetter

package
v0.0.0-...-1581884 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

This is a helper package that will hold the definitions of interfaces

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float32ReadWriter

type Float32ReadWriter interface {
	Float32Reader
	Float32Writer
}

Float32ReadWriter ...

type Float32Reader

type Float32Reader interface {
	Read() ([]float32, error)
}

Float32Reader a []float32

type Float32Writer

type Float32Writer interface {
	Write([]float32) error
}

Float32Writer writes an array of float 32

type FullTrainer

type FullTrainer interface {
	GetTrainer() (Trainer, error)
}

FullTrainer object can return subtrainers

type ReadWriter

type ReadWriter interface {
	ReadInputVector(*G.ExprGraph) (*G.Node, error)
	WriteComputedVector(*G.Node) error
	GetComputedVectors() G.Nodes // Should return all the nodes in the correct order
}

ReadWriter is an interface that can Read and returns a oneOfK encoded vector

type Trainer

type Trainer interface {
	ReadWriter
	// get the index of the expected output for offset
	// for example is the expected output is []int{0,0,1,0,0}, it returns 2
	GetExpectedValue(offset int) (int, error)
}

Trainer is a particular dataset that can be used to train a rnn it holds expected values

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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