persist

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpToFile

func DumpToFile(path string, dump *NetworkDump) error

func FromDump

func FromDump(dump *NetworkDump) *neural.Network

func FromFile

func FromFile(path string) (*neural.Network, error)

func SetFromFile

func SetFromFile(path string) (*learn.Set, error)

SetFromFile reads a data set from a file

func SetToFile

func SetToFile(path string, set *learn.Set) error

SetToFile writes a set to a file

func ToFile

func ToFile(path string, n *neural.Network) error

Types

type NetworkDump

type NetworkDump struct {
	Enters    int
	Weights   Weights
	OutLabels map[string]string
}

func DumpFromFile

func DumpFromFile(path string) (*NetworkDump, error)

func ToDump

func ToDump(n *neural.Network) *NetworkDump

type Weights

type Weights [][][]float64

Jump to

Keyboard shortcuts

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