Skip to content

Commit

Permalink
Merge pull request #1798 from cmu-phil/dg-fix
Browse files Browse the repository at this point in the history
fixing dg
  • Loading branch information
jdramsey authored Jul 15, 2024
2 parents 74e75c1 + edcf205 commit f046f67
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,14 @@ public double localScore(int i, int... parents) {
B.addAll(this.embedding.get(i_));
}

int[] parents_ = new int[B.size()];
for (int i_ = 0; i_ < B.size(); i_++) {
parents_[i_] = B.get(i_);
}

for (Integer i_ : A) {
int[] parents_ = new int[B.size()];
for (int i__ = 0; i__ < B.size(); i__++) {
parents_[i__] = B.get(i__);
}
score += this.bic.localScore(i_, parents_);
B.add(i_);
}

return score;
Expand Down

0 comments on commit f046f67

Please sign in to comment.