Skip to content

Commit

Permalink
fix merge for interval evidence
Browse files Browse the repository at this point in the history
  • Loading branch information
mnwright committed Feb 21, 2024
1 parent 0bb3329 commit e0ed951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ leaf_posterior <- function(params, evidence) {
if (any(evidence$family != 'multinom')) {
evi <- evidence[family != 'multinom']
evi[, n := .N, by = variable]
psi <- merge(evi, params$cnt, by = 'variable')
psi <- merge(evi, params$cnt, by = 'variable', allow.cartesian = TRUE)
if (any(evi$relation == '==')) {
psi[relation == '==', lik :=
truncnorm::dtruncnorm(value, a = min, b = max, mean = mu, sd = sigma)]
Expand Down

0 comments on commit e0ed951

Please sign in to comment.