Skip to content

Commit

Permalink
Fix/clip PLS
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed Dec 16, 2024
1 parent 20a712d commit 98720c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ func (p *Parameters) nextRecallStability(d float64, s float64, r float64, rating
}

func (p *Parameters) nextForgetStability(d float64, s float64, r float64) float64 {
return p.W[11] *
math.Pow(d, -p.W[12]) *
(math.Pow(s+1, p.W[13]) - 1) *
math.Exp((1-r)*p.W[14])
newSMin := s / math.Exp(p.W[17]*p.W[18])
return math.Min(newSMin, p.W[11]*
math.Pow(d, -p.W[12])*
(math.Pow(s+1, p.W[13])-1)*
math.Exp((1-r)*p.W[14]))
}

type FuzzRange struct {
Expand Down

0 comments on commit 98720c5

Please sign in to comment.