datasetter

package
v2.0.0-...-b0e3ffe Latest Latest
Warning

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

Go to latest
Published: Mar 26, 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 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