neurolog

package
v0.0.0-...-32d9f02 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NeuralNetwork

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

NeuralNetwork ... Neural-Redis interface

func New

func New(opts Options) NeuralNetwork

New ... Creates new neuralNetwork using options

func (NeuralNetwork) Classify

func (network NeuralNetwork) Classify(input map[string]int64) interface{}

Classify ... Run the network returning the classified class

func (NeuralNetwork) Create

func (network NeuralNetwork) Create() int64

Create ... Create the neural network

func (NeuralNetwork) Delete

func (network NeuralNetwork) Delete()

Delete ... Delete the neural network

func (NeuralNetwork) Info

func (network NeuralNetwork) Info() map[string]string

Info ... Returns Redis internal info about the neural network

func (NeuralNetwork) IsCreated

func (network NeuralNetwork) IsCreated() bool

IsCreated ... Returns true if the neural network is created

func (NeuralNetwork) IsTraining

func (network NeuralNetwork) IsTraining() bool

func (NeuralNetwork) ObserveTest

func (network NeuralNetwork) ObserveTest(input map[string]int64, output map[string]int64) interface{}

ObserveTest ... Add a data sample into the testing dataset

func (NeuralNetwork) ObserveTrain

func (network NeuralNetwork) ObserveTrain(input map[string]int64, output map[string]int64) interface{}

ObserveTrain ... Add a data sample into the training dataset

func (NeuralNetwork) ReCreate

func (network NeuralNetwork) ReCreate()

Re-create ... Recreate the neural network

func (NeuralNetwork) Run

func (network NeuralNetwork) Run(input map[string]int64) map[string]float64

Run ... Run the network returning a dict result

func (NeuralNetwork) Train

func (network NeuralNetwork) Train(maxCycles int, maxTime int, autoStop bool, backtrack bool) interface{}

Train ... Train

type Options

type Options struct {
	RedisHost       string
	Password        string
	Key             string
	Name            string
	Type            string
	Inputs          []string
	Outputs         []string
	HiddenLayers    []int
	DatasetSize     int
	TestDatasetSize int
	Normalize       bool
	RedisClient     *redis.Pool
	Prefix          string
	AutoCreate      bool
}

Options ...

Jump to

Keyboard shortcuts

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