training

package
v0.0.0-...-7591e67 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMNISTReader

func NewMNISTReader(dataFilename string, resultsFilename string, validatorFilename string, validatorResultsFilename string) (r *mnistReader)

Types

type TextDataReader

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

func NewTextDataReader

func NewTextDataReader(filename string, validationPart int) *TextDataReader

func (*TextDataReader) DataCount

func (r *TextDataReader) DataCount() int

func (*TextDataReader) GetData

func (r *TextDataReader) GetData(i int) (*mat.Dense, *mat.Dense)

func (*TextDataReader) GetValidator

func (r *TextDataReader) GetValidator(i int) (*mat.Dense, *mat.Dense)

func (*TextDataReader) ValidatorCount

func (r *TextDataReader) ValidatorCount() int

type Trainer

type Trainer interface {
	GetData(i int) (*mat.Dense, *mat.Dense)
	DataCount() int

	GetValidator(i int) (*mat.Dense, *mat.Dense)
	ValidatorCount() int
}

Trainer is basic inteface for neuralnetwork.NeuralNetwork training and validation

Jump to

Keyboard shortcuts

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