interinhib

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Package interinhib provides inter-layer inhibition params, which can be added to Layer types. Call at the start of the Layer InhibFmGeAct method like this:

// InhibFmGeAct computes inhibition Gi from Ge and Act averages within relevant Pools
func (ly *Layer) InhibFmGeAct(ltime *Time) {
	lpl := &ly.Pools[0]
	ly.Inhib.Layer.Inhib(&lpl.Inhib)
	ly.InterInhib.Inhib(&ly.Layer) // does inter-layer inhibition
	ly.PoolInhibFmGeAct(ltime)
}

Documentation

Overview

Package interinhib provides inter-layer inhibition params, which can be added to Layer types. Call at the start of the Layer InhibFmGeAct method like this:

// InhibFmGeAct computes inhibition Gi from Ge and Act averages within relevant Pools

func (ly *Layer) InhibFmGeAct(ltime *Time) {
	lpl := &ly.Pools[0]
	ly.Inhib.Layer.Inhib(&lpl.Inhib)
	ly.InterInhib.Inhib(&ly.Layer) // does inter-layer inhibition
	ly.PoolInhibFmGeAct(ltime)
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterInhib

type InterInhib struct {
	Lays emer.LayNames `desc:"layers to receive inhibition from"`
	Gi   float32       `desc:"multiplier on Gi from other layers"`
	Add  bool          `desc:"add inhibition -- otherwise Max"`
}

InterInhib specifies inhibition between layers, where the receiving layer either does a Max or Add of portion of inhibition from other layer(s).

func (*InterInhib) Defaults

func (il *InterInhib) Defaults()

func (*InterInhib) Inhib

func (il *InterInhib) Inhib(ly *leabra.Layer)

Inhib updates layer inhibition based on other layer inhibition

func (*InterInhib) OtherGi

func (il *InterInhib) OtherGi(net emer.Network) float32

OtherGi returns either the Sum (for Add) or Max of other layer Gi values. These are the raw values, not multiplied by Gi factor.

Jump to

Keyboard shortcuts

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