Skip to content

Commit

Permalink
fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jan 28, 2025
1 parent e3569d9 commit f836871
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions leabra/act.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (ac *ActParams) VmFromG(nrn *Neuron) {
if ac.Noise.Type == VmNoise {
nwVm += nrn.Noise
}
nrn.Vm = ac.VmRange.ClipValue(nwVm)
nrn.Vm = ac.VmRange.ClampValue(nwVm)
}

// GeThrFromG computes the threshold for Ge based on all other conductances,
Expand Down Expand Up @@ -278,7 +278,7 @@ func (ac *ActParams) HardClamp(nrn *Neuron) {
if ac.Noise.Type == ActNoise {
ext += nrn.Noise
}
clmp := ac.Clamp.Range.ClipValue(ext)
clmp := ac.Clamp.Range.ClampValue(ext)
nrn.Act = clmp + nrn.Noise
nrn.ActLrn = clmp
nrn.Vm = ac.XX1.Thr + nrn.Act/ac.XX1.Gain
Expand Down
2 changes: 1 addition & 1 deletion leabra/rl.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (ly *Layer) ActFromGRWPred(ctx *Context) {
if nrn.IsOff() {
continue
}
nrn.Act = ly.RW.PredRange.ClipValue(nrn.Ge) // clipped linear
nrn.Act = ly.RW.PredRange.ClampValue(nrn.Ge) // clipped linear
ly.Learn.AvgsFromAct(nrn)
}
}
Expand Down
2 changes: 1 addition & 1 deletion spike/spike.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (sk *ActParams) SpikeVmFromG(nrn *leabra.Neuron) {
if sk.Noise.Type == leabra.VmNoise {
nwVm += nrn.Noise
}
nrn.Vm = sk.VmRange.ClipValue(nwVm)
nrn.Vm = sk.VmRange.ClampValue(nwVm)
}

// SpikeActFromVm computes the discrete spiking activation
Expand Down

0 comments on commit f836871

Please sign in to comment.