Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
abraunst committed Dec 6, 2024
1 parent c9cbdc5 commit 6d5e1dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ real_t FactorGraph::update(int i, real_t damping, bool learn)
for (int gi = ti; gi < qi; ++gi) {
real_t w = f.ht[ti] * f.hg[gi];

w *= params.pseed * (ti == 0) + (1 - params.pseed) * (ti != 0)
w *= params.psus * (ti == qi - 1) + (1 - params.psus) * (ti != qi - 1)
w *= params.pseed * (ti == 0) + (1 - params.pseed) * (ti != 0);
w *= params.psus * (ti == qi - 1) + (1 - params.psus) * (ti != qi - 1);

for (unsigned k = 0; k < obs.size(); ++k) {
times_t const t = get<0>(obs[k]);
Expand Down

0 comments on commit 6d5e1dc

Please sign in to comment.