Skip to content

Commit

Permalink
Remove replace
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Nov 29, 2023
1 parent e6988eb commit 55eca9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/fit_em.jl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ function E_step!(
end
end
end
robust && replace!(LL, -Inf => nextfloat(-Inf), Inf => log(prevfloat(Inf)))
# get posterior of each category
logsumexp!(c, LL) # c[:] = logsumexp(LL, dims=2)
γ[:, :] .= exp.(LL .- c)
Expand Down

0 comments on commit 55eca9e

Please sign in to comment.