utils

package
v0.0.0-...-bcff216 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT, GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetwork

func NewNetwork(Config models.NeuralNetConfig) *models.NeuralNet

NewNetwork for obtaining new network

func Predict

func Predict(x *mat.Dense, nn *models.NeuralNet) (*mat.Dense, error)

Predict for prediction

func ShuffleRawCSVdata

func ShuffleRawCSVdata(data [][]string) [][]string

ShuffleRawCSVdata function for shuffling dataset

func Sigmoid

func Sigmoid(x float64) float64

Sigmoid Activation Function

func SigmoidPrime

func SigmoidPrime(x float64) float64

SigmoidPrime Derivative of Sigmoid Function

func SplitData

func SplitData(data dataframe.DataFrame)

SplitData function for spliting data set

func SumAlongAxis

func SumAlongAxis(axis int, m *mat.Dense) (*mat.Dense, error)

SumAlongAxis function for sum

func Train

func Train(x, y *mat.Dense, nn *models.NeuralNet) (*mat.Dense, error)

Train functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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