activation

package
v0.0.0-...-6a15580 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IActivation

type IActivation interface {
	Activate(val float64) (result float64)
	Derivate(val float64) (result float64)
	CallMe() string
}

func Generate

func Generate(attr *profile.Attr) (activation IActivation, err error)

type Relu

type Relu struct{}

func (*Relu) Activate

func (s *Relu) Activate(val float64) (result float64)

func (*Relu) CallMe

func (l *Relu) CallMe() string

func (*Relu) Derivate

func (s *Relu) Derivate(val float64) (result float64)

type Sigmoid

type Sigmoid struct{}

func (*Sigmoid) Activate

func (s *Sigmoid) Activate(val float64) (result float64)

func (*Sigmoid) CallMe

func (l *Sigmoid) CallMe() string

func (*Sigmoid) Derivate

func (s *Sigmoid) Derivate(val float64) (result float64)

type Tanh

type Tanh struct{}

func (*Tanh) Activate

func (s *Tanh) Activate(val float64) (result float64)

func (*Tanh) CallMe

func (l *Tanh) CallMe() string

func (*Tanh) Derivate

func (s *Tanh) Derivate(val float64) (result float64)

Jump to

Keyboard shortcuts

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