Versions in this module Expand all Collapse all v0 v0.5.5 Jan 19, 2023 Changes in this version + const AddPulv + const AttnPrjn + const NoAttnPrjn + const NoPulv + var KiT_Layer = kit.Types.AddType(&Layer{}, LayerProps) + var KiT_Prjn = kit.Types.AddType(&Prjn{}, PrjnProps) + var LayerProps = ki.Props + var NeuronVarsAll []string + var PrjnProps = ki.Props + type AttnParams struct + Min float32 + On bool + Range float32 + Thr float32 + func (db *AttnParams) DeepAttnFmG(lrn float32) float32 + func (db *AttnParams) DeepLrnFmG(attnG, attnMax float32) float32 + func (db *AttnParams) Defaults() + func (db *AttnParams) Update() + type BurstParams struct + BurstQtr leabra.Quarters + FmActNoAttn bool + On bool + ThrAbs float32 + ThrRel float32 + func (db *BurstParams) Defaults() + func (db *BurstParams) IsBurstQtr(qtr int) bool + func (db *BurstParams) NextIsBurstQtr(qtr int) bool + func (db *BurstParams) PrevIsBurstQtr(qtr int) bool + func (db *BurstParams) SetBurstQtr(qtr leabra.Quarters) + func (db *BurstParams) Update() type DeepLayer + AttnGeInc func(ltime *leabra.Time) + BurstFmAct func(ltime *leabra.Time) + BurstPrv func(ltime *leabra.Time) + CtxtFmGe func(ltime *leabra.Time) + SendCtxtGe func(ltime *leabra.Time) type DeepPrjn + RecvCtxtGeInc func() + SendCtxtGe func(si int, dburst float32) type Layer + func (ly *Layer) AttnGeInc(ltime *leabra.Time) + func (ly *Layer) BurstFmAct(ltime *leabra.Time) + func (ly *Layer) BurstPrv(ltime *leabra.Time) + func (ly *Layer) Class() string + func (ly *Layer) CtxtFmGe(ltime *leabra.Time) + func (ly *Layer) InitGInc() + func (ly *Layer) IsSuper() bool + func (ly *Layer) SendCtxtGe(ltime *leabra.Time) + func (ly *Layer) UnitVal1D(varIdx int, idx int) float32 + func (ly *Layer) UnitVarIdx(varNm string) (int, error) + type LayerType emer.LayerType + const Deep_ + const TRC_ + func StringToLayerType(s string) (LayerType, error) + func (i LayerType) String() string type Network + func (nt *Network) AddInputPulv2D(name string, shapeY, shapeX int) (input, pulv emer.Layer) + func (nt *Network) AddInputPulv4D(name string, nPoolsY, nPoolsX, nNeurY, nNeurX int) (input, pulv emer.Layer) + func (nt *Network) AddSuperDeep2D(name string, shapeY, shapeX int, pulvLay, attn bool) (super, deep, pulv emer.Layer) + func (nt *Network) AddSuperDeep4D(name string, nPoolsY, nPoolsX, nNeurY, nNeurX int, pulvLay, attn bool) (super, deep, pulv emer.Layer) + func (nt *Network) CycleImpl(ltime *leabra.Time) + func (nt *Network) UnitVarNames() []string type Neuron + Burst float32 + BurstPrv float32 + BurstSent float32 + CtxtGe float32 type Prjn + CtxtGeInc []float32 + func (pj *Prjn) PrjnTypeName() string + func (pj *Prjn) RecvCtxtGeInc() + func (pj *Prjn) SendCtxtGe(si int, dburst float32) + type PrjnType emer.PrjnType + const BurstCtxt_ + const BurstTRC_ + const DeepAttn_ + func StringToPrjnType(s string) (PrjnType, error) + func (i PrjnType) String() string + type TRCParams struct + BinOff float32 + BinOn float32 + BinThr float32 + Binarize bool + InhibPool bool + MaxInhib float32 + func (tp *TRCParams) BurstGe(burstGe float32) float32 + func (tp *TRCParams) Defaults() + func (tp *TRCParams) Update() v0.5.0 Jun 12, 2019 Changes in this version + const BurstCtxt + const BurstTRC + const Deep + const DeepAttn + const LayerTypeN + const PrjnTypeN + const Super + const TRC + var AllNeuronVars []string + var KiT_LayerType = kit.Enums.AddEnum(LayerTypeN, false, nil) + var KiT_Network = kit.Types.AddType(&Network{}, NetworkProps) + var KiT_PrjnType = kit.Enums.AddEnum(PrjnTypeN, false, nil) + var NetworkProps = leabra.NetworkProps + var NeuronVars = []string + var NeuronVarsMap map[string]int + func NeuronVarByName(varNm string) (int, error) + type DeepAttnParams struct + Min float32 + On bool + Range float32 + Thr float32 + func (db *DeepAttnParams) DeepAttnFmG(lrn float32) float32 + func (db *DeepAttnParams) DeepLrnFmG(attnG, attnMax float32) float32 + func (db *DeepAttnParams) Defaults() + func (db *DeepAttnParams) Update() + type DeepBurstParams struct + BurstQtr leabra.Quarters + FmActNoAttn bool + On bool + ThrAbs float32 + ThrRel float32 + func (db *DeepBurstParams) Defaults() + func (db *DeepBurstParams) IsBurstQtr(qtr int) bool + func (db *DeepBurstParams) NextIsBurstQtr(qtr int) bool + func (db *DeepBurstParams) PrevIsBurstQtr(qtr int) bool + func (db *DeepBurstParams) Update() + type DeepCtxtParams struct + FmNew float32 + FmPrv float32 + func (db *DeepCtxtParams) DeepCtxtFmGe(ge, dctxt float32) float32 + func (db *DeepCtxtParams) Defaults() + func (db *DeepCtxtParams) Update() + type DeepLayer interface + AsDeep func() *Layer + AvgMaxActNoAttn func(ltime *leabra.Time) + AvgMaxAttnGe func(ltime *leabra.Time) + AvgMaxTRCBurstGe func(ltime *leabra.Time) + DeepAttnFmG func(ltime *leabra.Time) + DeepBurstFmAct func(ltime *leabra.Time) + DeepBurstPrv func(ltime *leabra.Time) + DeepCtxtFmGe func(ltime *leabra.Time) + SendDeepCtxtGe func(ltime *leabra.Time) + SendTRCBurstGeDelta func(ltime *leabra.Time) + TRCBurstGeFmInc func(ltime *leabra.Time) + type DeepPrjn interface + DWtDeepCtxt func() + RecvAttnGeInc func() + RecvDeepCtxtGeInc func() + RecvTRCBurstGeInc func() + SendAttnGeDelta func(si int, delta float32) + SendDeepCtxtGe func(si int, dburst float32) + SendTRCBurstGeDelta func(si int, delta float32) + type DeepTRCParams struct + BinOff float32 + BinOn float32 + BinThr float32 + Binarize bool + func (tp *DeepTRCParams) BurstGe(burstGe float32) float32 + func (tp *DeepTRCParams) Defaults() + func (tp *DeepTRCParams) Update() + type Layer struct + DeepAttn DeepAttnParams + DeepBurst DeepBurstParams + DeepCtxt DeepCtxtParams + DeepNeurs []Neuron + DeepPools []Pool + DeepTRC DeepTRCParams + func (ly *Layer) ActFmG(ltime *leabra.Time) + func (ly *Layer) AsDeep() *Layer + func (ly *Layer) AsLeabra() *leabra.Layer + func (ly *Layer) AvgMaxAct(ltime *leabra.Time) + func (ly *Layer) AvgMaxActNoAttn(ltime *leabra.Time) + func (ly *Layer) AvgMaxAttnGe(ltime *leabra.Time) + func (ly *Layer) AvgMaxGe(ltime *leabra.Time) + func (ly *Layer) AvgMaxTRCBurstGe(ltime *leabra.Time) + func (ly *Layer) Build() error + func (ly *Layer) DecayState(decay float32) + func (ly *Layer) DeepAttnFmG(ltime *leabra.Time) + func (ly *Layer) DeepBurstFmAct(ltime *leabra.Time) + func (ly *Layer) DeepBurstPrv(ltime *leabra.Time) + func (ly *Layer) DeepCtxtFmGe(ltime *leabra.Time) + func (ly *Layer) Defaults() + func (ly *Layer) GFmInc(ltime *leabra.Time) + func (ly *Layer) GScaleFmAvgAct() + func (ly *Layer) InitActs() + func (ly *Layer) QuarterFinal(ltime *leabra.Time) + func (ly *Layer) SendDeepCtxtGe(ltime *leabra.Time) + func (ly *Layer) SendGDelta(ltime *leabra.Time) + func (ly *Layer) SendTRCBurstGeDelta(ltime *leabra.Time) + func (ly *Layer) TRCBurstGeFmInc(ltime *leabra.Time) + func (ly *Layer) UnitVal1DTry(varNm string, idx int) (float32, error) + func (ly *Layer) UnitValTry(varNm string, idx []int) (float32, error) + func (ly *Layer) UnitValsTry(varNm string) ([]float32, error) + func (ly *Layer) UnitVarNames() []string + func (ly *Layer) UpdateParams() + type Network struct + func (nt *Network) Cycle(ltime *leabra.Time) + func (nt *Network) DeepBurst(ltime *leabra.Time) + func (nt *Network) DeepCtxt(ltime *leabra.Time) + func (nt *Network) Defaults() + func (nt *Network) NewLayer() emer.Layer + func (nt *Network) NewPrjn() emer.Prjn + func (nt *Network) QuarterFinal(ltime *leabra.Time) + func (nt *Network) UpdateParams() + type Neuron struct + ActNoAttn float32 + AttnGe float32 + DeepAttn float32 + DeepBurst float32 + DeepBurstPrv float32 + DeepBurstSent float32 + DeepCtxt float32 + DeepCtxtGe float32 + DeepLrn float32 + TRCBurstGe float32 + func (nrn *Neuron) VarByIndex(idx int) float32 + func (nrn *Neuron) VarByName(varNm string) (float32, error) + func (nrn *Neuron) VarNames() []string + type Pool struct + ActNoAttn minmax.AvgMax32 + AttnGe minmax.AvgMax32 + TRCBurstGe minmax.AvgMax32 + type Prjn struct + AttnGeInc []float32 + DeepCtxtGeInc []float32 + TRCBurstGeInc []float32 + func (pj *Prjn) AsLeabra() *leabra.Prjn + func (pj *Prjn) Build() error + func (pj *Prjn) DWt() + func (pj *Prjn) DWtDeepCtxt() + func (pj *Prjn) Defaults() + func (pj *Prjn) InitGInc() + func (pj *Prjn) RecvAttnGeInc() + func (pj *Prjn) RecvDeepCtxtGeInc() + func (pj *Prjn) RecvTRCBurstGeInc() + func (pj *Prjn) SendAttnGeDelta(si int, delta float32) + func (pj *Prjn) SendDeepCtxtGe(si int, dburst float32) + func (pj *Prjn) SendTRCBurstGeDelta(si int, delta float32) + func (pj *Prjn) UpdateParams()