interinhib

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Package interinhib provides inter-layer inhibition params, which can be added to Layer types.

Note: it is better to use direct inhibitory projections -- try that first before using this!

Note: the following has not been updated from Leabra version to axon:

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 *axon.Layer)

Inhib updates layer inhibition based on other layer inhibition

func (*InterInhib) OtherGi

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

OtherGi returns either the Sum (for Add) or Max of other layer Gi values.

Jump to

Keyboard shortcuts

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