params

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LINEAR    uint8 = iota // LINEAR - Linear/identity.
	RELU                   // RELU - ReLu (rectified linear unit).
	LEAKYRELU              // LEAKYRELU - Leaky ReLu (leaky rectified linear unit).
	SIGMOID                // SIGMOID - Logistic, a.k.a. sigmoid or soft step.
	TANH                   // TANH - TanH (hyperbolic tangent).
)

Activation function mode.

View Source
const (
	MSE    uint8 = iota // MSE - Mean Squared Error.
	RMSE                // RMSE - Root Mean Squared Error.
	ARCTAN              // ARCTAN - Arctan Error.
	AVG                 // AVG - Average Error.
)

The mode of calculation of the total error.

Variables

View Source
var GetRandFloat = getRandFloat

Functions

func Activation

func Activation(value pkg.FloatType, mode uint8) pkg.FloatType

Activation function.

func CheckActivationMode

func CheckActivationMode(mode uint8) uint8

CheckActivationMode.

func CheckLayer

func CheckLayer(layer []uint) []uint

CheckLayer.

func CheckLearningRate

func CheckLearningRate(rate pkg.FloatType) pkg.FloatType

CheckLearningRate.

func CheckLossMode

func CheckLossMode(mode uint8) uint8

CheckLossMode.

func Derivative

func Derivative(value pkg.FloatType, mode uint8) pkg.FloatType

Derivative activation function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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