Versions in this module Expand all Collapse all v1 v1.1.31 Mar 19, 2021 v1.1.28 Jan 13, 2021 v1.1.27 Jan 12, 2021 v1.1.26 Jan 4, 2021 Changes in this version + const NoUSTimeIn + var ContextInShape = []int + var CtxMap = map[string]Context + var CtxRe = regexp.Compile("([ABCDEFUVWXYZ])([ABCDEFUVWXYZ]?)_?([ABCDEFUVWXYZ]?)") + var KiT_AcqExt = kit.Enums.AddEnum(NAcqExt, kit.NotBitFlag, nil) + var KiT_BlAmygLayer = kit.Types.AddType(&BlAmygLayer{}, nil) + var KiT_CElAmygLayer = kit.Types.AddType(&CElAmygLayer{}, nil) + var KiT_Context = kit.Enums.AddEnum(NContexts + 1, kit.NotBitFlag, nil) + var KiT_DALrnRule = kit.Enums.AddEnum(DALrnRuleN, kit.NotBitFlag, nil) + var KiT_DaRType = kit.Enums.AddEnum(DaRTypeN, kit.NotBitFlag, nil) + var KiT_LHbRMTgLayer = kit.Types.AddType(&LHbRMTgLayer{}, leabra.LayerProps) + var KiT_MSNLayer = kit.Types.AddType(&MSNLayer{}, leabra.LayerProps) + var KiT_ModLayer = kit.Types.AddType(&ModLayer{}, nil) + var KiT_ModNeuron = kit.Types.AddType(&ModNeuron{}, nil) + var KiT_ModNeuronVar = kit.Enums.AddEnum(ModNeuronVarsN, kit.NotBitFlag, nil) + var KiT_ModParams = kit.Types.AddType(&ModParams{}, nil) + var KiT_Modulators = kit.Types.AddType(&Modulators{}, nil) + var KiT_Network = kit.Types.AddType(&Network{}, NetworkProps) + var KiT_PPTgLayer = kit.Types.AddType(&PPTgLayer{}, leabra.LayerProps) + var KiT_Stim = kit.Enums.AddEnum(StimN + 1, kit.NotBitFlag, nil) + var KiT_StriatalCompartment = kit.Enums.AddEnum(NSComp, kit.NotBitFlag, nil) + var KiT_Tick = kit.Enums.AddEnum(TickN + 1, kit.NotBitFlag, nil) + var KiT_Valence = kit.Enums.AddEnum(ValenceN, kit.NotBitFlag, nil) + var ModNeuronVars = []string + var ModNeuronVarsAll []string + var ModNeuronVarsMap map[string]int + var NegSMap = map[string]NegUS + var NetworkProps = leabra.NetworkProps + var PosSMap = map[string]PosUS + var StimInShape = []int + var StimMap = map[string]Stim + var StmGrpMap = map[Stim]int + var SynapseVarProps = map[string]string + var SynapseVarsAll []string + var TickMap = map[string]Tick + var TraceVars = []string + var TraceVarsMap map[string]int + var USInShape = []int + var USNone = US(PosUSNone) + var USTRe = regexp.Compile("([ABCDEFUVWXYZ]?)_?(Pos|Neg)US([0123])_t([01234])") + var USTimeInShape = []int + var ValMap = map[string]Valence + func NeuronVarIdxByName(varNm string) (int, error) + func OneHotUS(us US) int + func SynapseVarByName(varNm string) (int, error) + func Tensor(us US) etensor.Tensor + func TensorScaled(us US, scale float32) etensor.Tensor + func TotalAct(ly emer.Layer) float32 + func TraceVarByName(varNm string) (int, error) + type AcqExt int + const Acq + const Ext + const NAcqExt + func (i AcqExt) String() string + type AmygModPrjn struct + ActDeltaThr float32 + ActLrnMod bool + ActLrnThr float32 + DALRBase float32 + DALRGain float32 + DALrnThr float32 + DaMod DaModParams + InitWtVal float32 + SetScale bool + SetScaleMax float32 + SetScaleMin float32 + func (pj *AmygModPrjn) AsAmygModPrjn() *AmygModPrjn + func (pj *AmygModPrjn) DWt() + func (pj *AmygModPrjn) Defaults() + func (pj *AmygModPrjn) GaussScale(_, _ int, _, _ *etensor.Shape) float32 + func (pj *AmygModPrjn) InitWts() + type AvgMaxModLayer interface + AvgMaxMod func(*leabra.Time) + type BlAmygLayer struct + ILI interinhib.InterInhib + Valence Valence + func (ly *BlAmygLayer) AsBlAmygLayer() *BlAmygLayer + func (ly *BlAmygLayer) Build() error + func (ly *BlAmygLayer) Defaults() + func (ly *BlAmygLayer) GetMonitorVal(data []string) float64 + func (ly *BlAmygLayer) InhibFmGeAct(ltime *leabra.Time) + type CElAmygLayer struct + AcqDeepMod bool + CElTyp CElAmygLayerType + func (ly *CElAmygLayer) AsCElAmygLayer() *CElAmygLayer + func (ly *CElAmygLayer) Build() error + func (ly *CElAmygLayer) Defaults() + type CElAmygLayerType struct + AcqExt AcqExt + Valence Valence + type Context int + const CtxA + const CtxAB + const CtxAB_B + const CtxAB_C + const CtxAX + const CtxAX_B + const CtxAX_C + const CtxA_B + const CtxA_C + const CtxB + const CtxBY + const CtxBY_B + const CtxBY_C + const CtxB_B + const CtxB_C + const CtxC + const CtxCD + const CtxCD_B + const CtxCD_C + const CtxCX + const CtxCX_B + const CtxCX_C + const CtxCY + const CtxCY_B + const CtxCY_C + const CtxCZ + const CtxCZ_B + const CtxCZ_C + const CtxC_B + const CtxC_C + const CtxD + const CtxDU + const CtxD_B + const CtxD_C + const CtxE + const CtxE_B + const CtxE_C + const CtxF + const CtxF_B + const CtxF_C + const CtxNone + const CtxU + const CtxU_B + const CtxU_C + const CtxV + const CtxV_B + const CtxV_C + const CtxW + const CtxW_B + const CtxW_C + const CtxX + const CtxX_B + const CtxX_C + const CtxY + const CtxY_B + const CtxY_C + const CtxZ + const CtxZ_B + const CtxZ_C + const NContexts + func (ctx Context) Empty() bool + func (ctx Context) FromString(s string) Inputs + func (ctx Context) Int() int + func (ctx Context) OneHot() int + func (ctx Context) Parts() []int + func (ctx Context) Tensor() etensor.Tensor + func (ctx Context) TensorScaled(scale float32) etensor.Tensor + func (i Context) String() string + type DALrnRule int + const DAHebbVS + const DALrnRuleN + const TraceNoThalVS + func (i DALrnRule) String() string + type DaModParams struct + BurstGain float32 + DipGain float32 + On bool + RecepType DaRType + type DaRType int + const D1R + const D2R + const DaRTypeN + func (i DaRType) String() string + type DelInhState struct + GePrvQ float32 + GePrvTrl float32 + type DelayedInhibParams struct + Active bool + PrvQ float32 + PrvTrl float32 + type IAmygPrjn interface + AsAmygModPrjn func() *AmygModPrjn + type IBlAmygLayer interface + AsBlAmygLayer func() *BlAmygLayer + type ICElAmygLayer interface + AsCElAmygLayer func() *CElAmygLayer + type IMSNLayer interface + AsMSNLayer func() *MSNLayer + type IMSNPrjn interface + AsMSNPrjn func() *MSNPrjn + type IModLayer interface + AsMod func() *ModLayer + type INetwork interface + AsLeabra func() *leabra.Network + type ISetScalePrjn interface + InitWts func() + type IUS interface + Int func() int + String func() string + Val func() Valence + type Inputs interface + Empty func() bool + FromString func(s string) Inputs + OneHot func() int + Tensor func() etensor.Tensor + TensorScaled func(scale float32) etensor.Tensor + var Fooey Inputs = POS + type LHBRMTgInternalState struct + NegPV float32 + NetNeg float32 + NetPos float32 + PosPV float32 + VSMatrixNegD1 float32 + VSMatrixNegD2 float32 + VSMatrixNegNet float32 + VSMatrixPosD1 float32 + VSMatrixPosD2 float32 + VSMatrixPosNet float32 + VSPatchNegD1 float32 + VSPatchNegD2 float32 + VSPatchNegNet float32 + VSPatchPosD1 float32 + VSPatchPosD2 float32 + VSPatchPosNet float32 + type LHbRMTgGains struct + All float32 + VSMatrixNegD1 float32 + VSMatrixNegD2 float32 + VSMatrixPosD1 float32 + VSMatrixPosD2 float32 + VSPatchNegD1 float32 + VSPatchNegD2 float32 + VSPatchPosD1 float32 + VSPatchPosD2 float32 + VSPatchPosDisinhib float32 + type LHbRMTgLayer struct + Gains LHbRMTgGains + InternalState LHBRMTgInternalState + PVNegDiscount float32 + RcvFrom emer.LayNames + func AddLHbRMTgLayer(nt *Network, name string) *LHbRMTgLayer + func (ly *LHbRMTgLayer) ActFmG(ltime *leabra.Time) + func (ly *LHbRMTgLayer) Build() error + func (ly *LHbRMTgLayer) Defaults() + func (ly *LHbRMTgLayer) GetMonitorVal(data []string) float64 + type MSNLayer struct + Compartment StriatalCompartment + DIParams DelayedInhibParams + DIState []DelInhState + func AddMSNLayer(nt *Network, name string, nY, nX, nNeurY, nNeurX int, cpmt StriatalCompartment, ...) *MSNLayer + func (ly *MSNLayer) AlphaCycInit() + func (ly *MSNLayer) AsMSNLayer() *MSNLayer + func (ly *MSNLayer) AsMod() *ModLayer + func (ly *MSNLayer) Build() error + func (ly *MSNLayer) ClearMSNTrace() + func (ly *MSNLayer) Defaults() + func (ly *MSNLayer) GetDA() float32 + func (ly *MSNLayer) GetMonitorVal(data []string) float64 + func (ly *MSNLayer) InhibFmGeAct(ltime *leabra.Time) + func (ly *MSNLayer) InitActs() + func (ly *MSNLayer) ModsFmInc(_ *leabra.Time) + func (ly *MSNLayer) PoolDelayedInhib(pl *leabra.Pool) + func (ly *MSNLayer) QuarterInitPrvs(ltime *leabra.Time) + func (ly *MSNLayer) RecvPrjnVals(vals *[]float32, varNm string, sendLay emer.Layer, sendIdx1D int, ...) error + func (ly *MSNLayer) SendPrjnVals(vals *[]float32, varNm string, recvLay emer.Layer, recvIdx1D int, ...) error + func (ly *MSNLayer) SetDA(da float32) + type MSNParams struct + Compartment StriatalCompartment + type MSNPrjn struct + DaMod DaModParams + LearningRule DALrnRule + MaxVSActMod float32 + RLActVar string + SLActVar string + TrSyns []TraceSyn + Trace MSNTraceParams + func (pj *MSNPrjn) AsMSNPrjn() *MSNPrjn + func (pj *MSNPrjn) Build() error + func (pj *MSNPrjn) ClearTrace() + func (pj *MSNPrjn) DWt() + func (pj *MSNPrjn) Defaults() + func (pj *MSNPrjn) InitWts() + func (pj *MSNPrjn) SynVal(varNm string, sidx, ridx int) float32 + func (pj *MSNPrjn) SynVal1D(varIdx int, synIdx int) float32 + func (pj *MSNPrjn) SynVarIdx(varNm string) (int, error) + type MSNTraceParams struct + Decay float32 + Deriv bool + GateLRScale float32 + func (tp *MSNTraceParams) Defaults() + func (tp *MSNTraceParams) MSNActLrnFactor(act float32) float32 + type ModLayer struct + DaMod DaModParams + ModNeurs []ModNeuron + ModPools []ModPool + ModReceivers []ModRcvrParams + func (ly *ModLayer) ActFmG(_ *leabra.Time) + func (ly *ModLayer) AddModReceiver(rcvr ModReceiver, scale float32) + func (ly *ModLayer) AsLeabra() *leabra.Layer + func (ly *ModLayer) AsMod() *ModLayer + func (ly *ModLayer) AvgMaxMod(_ *leabra.Time) + func (ly *ModLayer) Build() error + func (ly *ModLayer) ClearModActs() + func (ly *ModLayer) ClearModLevels() + func (ly *ModLayer) DALrnFmDA(da float32) float32 + func (ly *ModLayer) Defaults() + func (ly *ModLayer) GScaleFmAvgAct() + func (ly *ModLayer) GetDA() float32 + func (ly *ModLayer) GetMonitorVal(data []string) float64 + func (ly *ModLayer) Init() + func (ly *ModLayer) InitActs() + func (ly *ModLayer) ModSendValue(ni int32) float32 + func (ly *ModLayer) ModUnitVals(vals *[]float32, varNm string) error + func (ly *ModLayer) ModsFmInc(_ *leabra.Time) + func (ly *ModLayer) ReceiveMods(sender ModSender, scale float32) + func (ly *ModLayer) SendMods(_ *leabra.Time) + func (ly *ModLayer) SetDA(da float32) + func (ly *ModLayer) UnitVal1D(varIdx int, idx int) float32 + func (ly *ModLayer) UnitValByIdx(vidx ModNeuronVar, idx int) float32 + func (ly *ModLayer) UnitVals(vals *[]float32, varNm string) error + func (ly *ModLayer) UnitValsTensor(tsr etensor.Tensor, varNm string) error + func (ly *ModLayer) UnitVarIdx(varNm string) (int, error) + func (ly *ModLayer) UnitVarNames() []string + func (ly *ModLayer) UpdateParams() + type ModNeuron struct + ModAct float32 + ModLevel float32 + ModLrn float32 + ModNet float32 + PVAct float32 + func (mnr *ModNeuron) InitActs() + func (mnr *ModNeuron) VarByIndex(idx int) float32 + func (mnr *ModNeuron) VarByName(varNm string) (float32, error) + func (mnr *ModNeuron) VarNames() []string + type ModNeuronVar int + const ACh + const Cust1 + const DA + const ModAct + const ModLevel + const ModLrn + const ModNet + const ModNeuronVarsN + const PVAct + const SE + func (i ModNeuronVar) String() string + type ModParams struct + ActModZero bool + IsModReceiver bool + IsModSender bool + IsPVReceiver bool + Minus float32 + ModNetThreshold float32 + ModSendThreshold float32 + NegGain float32 + Plus float32 + PosGain float32 + func (dm *ModParams) Gain(da, gain float32, plusPhase bool) float32 + func (dm *ModParams) Ge(da, ge float32, plusPhase bool) float32 + type ModPool struct + ModNetStats minmax.AvgMax32 + ModSendThreshold float32 + ModSent float32 + type ModRcvrParams struct + RcvName string + Scale float32 + type ModReceiver interface + ModsFmInc func(ltime *leabra.Time) + ReceiveMods func(sender ModSender, scale float32) + type ModSender interface + ModSendValue func(ni int32) float32 + SendMods func(ltime *leabra.Time) + type Modulators struct + ACh float32 + DA float32 + SE float32 + func (ml *Modulators) InitActs() + type NegUS US + const NNegUS + const Nausea + const NegUSNone + const OtherNeg + const Sharp + const Shock + func (i NegUS) String() string + func (neg NegUS) FromString(s string) NegUS + func (neg NegUS) Int() int + func (neg NegUS) NegUSEmpty() bool + func (neg NegUS) OneHot() int + func (neg NegUS) Tensor() etensor.Tensor + func (neg NegUS) Val() Valence + type Network struct + func (nt *Network) AddBlAmygLayer(name string, nY, nX, nNeurY, nNeurX int, val Valence, dar DaRType, ...) *BlAmygLayer + func (nt *Network) AddCElAmygLayer(name string, nY, nX, nNeurY, nNeurX int, acqExt AcqExt, val Valence, ...) *CElAmygLayer + func (nt *Network) AddMSNLayer(name string, nY, nX, nNeurY, nNeurX int, cpmt StriatalCompartment, da DaRType) *MSNLayer + func (nt *Network) AddVTALayer(name string, val Valence) *VTALayer + func (nt *Network) AsLeabra() *leabra.Network + func (nt *Network) AvgMaxMod(ltime *leabra.Time) + func (nt *Network) ClearMSNTraces(_ *leabra.Time) + func (nt *Network) ClearModActs(_ *leabra.Time) + func (nt *Network) ConnectLayersActMod(sender ModSender, rcvr ModReceiver, scale float32) + func (nt *Network) Cycle(ltime *leabra.Time) + func (nt *Network) CycleImpl(ltime *leabra.Time) + func (nt *Network) InitActs() + func (nt *Network) QuarterInitPrvs(ltime *leabra.Time) + func (nt *Network) RecvModInc(ltime *leabra.Time) + func (nt *Network) SendMods(ltime *leabra.Time) + func (nt *Network) SynVarNames() []string + func (nt *Network) SynVarProps() map[string]string + func (nt *Network) UnitVarNames() []string + type PPTgLayer struct + ActThreshold float32 + ClampActivation bool + DA float32 + DNetGain float32 + Ge float32 + GePrev float32 + SendAct float32 + func AddPPTgLayer(nt *Network, name string, nY, nX int) *PPTgLayer + func (ly *PPTgLayer) ActFmG(_ *leabra.Time) + func (ly *PPTgLayer) Build() error + func (ly *PPTgLayer) Defaults() + func (ly *PPTgLayer) GetDA() float32 + func (ly *PPTgLayer) GetMonitorVal(data []string) float64 + func (ly *PPTgLayer) InitActs() + func (ly *PPTgLayer) QuarterFinal(ltime *leabra.Time) + func (ly *PPTgLayer) SetDA(da float32) + type PVLayer struct + Net *Network + PVReceivers emer.LayNames + SendPVQuarter int + func AddPVLayer(nt *Network, name string, nY, nX int, typ emer.LayerType) *PVLayer + func (ly *PVLayer) AddPVReceiver(lyNm string) + func (ly *PVLayer) Build() error + func (ly *PVLayer) CyclePost(ltime *leabra.Time) + func (ly *PVLayer) GetMonitorVal(data []string) float64 + func (ly *PVLayer) SendPVAct() + type PackedUSTimeState int64 + const USTimeNone + func PUSTFromString(s string) PackedUSTimeState + func (ps PackedUSTimeState) Empty() bool + func (ps PackedUSTimeState) Shape() []int + func (ps PackedUSTimeState) Stim() Stim + func (ps PackedUSTimeState) String() string + func (ps PackedUSTimeState) Tensor() etensor.Tensor + func (ps PackedUSTimeState) TensorScaled(scale float32) etensor.Tensor + func (ps PackedUSTimeState) US() US + func (ps PackedUSTimeState) USTimeIn() Tick + func (ps PackedUSTimeState) Unpack() USTimeState + func (ps PackedUSTimeState) Valence() Valence + func (pus PackedUSTimeState) FromString(s string) PackedUSTimeState + type PosUS US + const Food + const Mate + const NPosUS + const OtherPos + const PosUSNone + const Water + func (i PosUS) String() string + func (pos PosUS) FromString(s string) PosUS + func (pos PosUS) Int() int + func (pos PosUS) OneHot() int + func (pos PosUS) PosUSEmpty() bool + func (pos PosUS) Tensor() etensor.Tensor + func (pos PosUS) Val() Valence + type Stim int + const StimN + const StmA + const StmB + const StmC + const StmD + const StmE + const StmF + const StmNone + const StmU + const StmV + const StmW + const StmX + const StmY + const StmZ + func (i Stim) String() string + func (stm Stim) Empty() bool + func (stm Stim) FromString(s string) Inputs + func (stm Stim) OneHot() int + func (stm Stim) Tensor() etensor.Tensor + func (stm Stim) TensorScaled(scale float32) etensor.Tensor + type StriatalCompartment int + const MATRIX + const NSComp + const PATCH + func (i StriatalCompartment) String() string + type Tick int + const T0 + const T1 + const T2 + const T3 + const T4 + const T5 + const T6 + const T7 + const T8 + const T9 + const TckNone + const TickN + func (i Tick) String() string + func (t Tick) Empty() bool + func (t Tick) FromString(s string) Inputs + func (t Tick) Int() int + func (t Tick) OneHot() int + func (t Tick) Tensor() etensor.Tensor + func (t Tick) TensorScaled(scale float32) etensor.Tensor + type TraceSyn struct + NTr float32 + Tr float32 + func (tr *TraceSyn) SetVarByIndex(idx int, val float32) + func (tr *TraceSyn) SetVarByName(varNm string, val float32) error + func (tr *TraceSyn) VarByIndex(idx int) float32 + func (tr *TraceSyn) VarNames() []string + type US int + func (us US) Empty() bool + func (us US) FromString(s string) Inputs + func (us US) Int() int + func (us US) OneHot() int + func (us US) String() string + func (us US) Tensor() etensor.Tensor + func (us US) TensorScaled(scale float32) etensor.Tensor + func (us US) Val() Valence + type USTimeState struct + Stm Stim + Tck Tick + US US + Val Valence + func USTFromString(uss string) USTimeState + func (usts USTimeState) Coords() []int + func (usts USTimeState) CoordsString() string + func (usts USTimeState) Empty() bool + func (usts USTimeState) EnumVal() int + func (usts USTimeState) OneHot(scale float32) etensor.Tensor + func (usts USTimeState) Pack() PackedUSTimeState + func (usts USTimeState) String() string + func (usts USTimeState) Tensor() etensor.Tensor + func (usts USTimeState) TensorScaleAndAdd(scale float32, other USTimeState) etensor.Tensor + func (usts USTimeState) TensorScaled(scale float32) etensor.Tensor + func (usts USTimeState) TsrOffset() []int + type VTADAGains struct + DA float32 + LHb float32 + PPTg float32 + PV float32 + PVIAntiBurstShunt float32 + PVIAntiDipShunt float32 + PVIBurstShunt float32 + PVIDipShunt float32 + func (dag *VTADAGains) Defaults() + type VTALayer struct + DAGains VTADAGains + InternalState VTAState + RecvFrom map[string]emer.Layer + SendVal float32 + TonicDA float32 + Valence Valence + func AddVTALayer(nt *Network, name string, val Valence) *VTALayer + func (ly *VTALayer) ActFmG(ltime *leabra.Time) + func (ly *VTALayer) Build() error + func (ly *VTALayer) CyclePost(_ *leabra.Time) + func (ly *VTALayer) Defaults() + func (ly *VTALayer) GetMonitorVal(data []string) float64 + func (ly *VTALayer) VTAAct(ltime *leabra.Time) + func (ly *VTALayer) VTAActN(_ *leabra.Time) + func (ly *VTALayer) VTAActP(_ *leabra.Time) + type VTAState struct + BurstLHbDA float32 + DipLHbDA float32 + LHbDA float32 + NetDA float32 + NetDipDA float32 + PPTgDAp float32 + PosPVAct float32 + SendVal float32 + TotBurstDA float32 + TotDipDA float32 + VSNegPVI float32 + VSPosPVI float32 + type Valence int + const NEG + const POS + const ValNone + const ValenceN + func (i Valence) String() string + func (val Valence) Empty() bool + func (val Valence) FromString(s string) Inputs + func (val Valence) Negate() Valence + func (val Valence) OneHot() int + func (val Valence) Tensor() etensor.Tensor + func (val Valence) TensorScaled(scale float32) etensor.Tensor