Skip to content

Commit

Permalink
fix: Handle string keys in Crosscat model
Browse files Browse the repository at this point in the history
  • Loading branch information
KingMob committed May 8, 2024
1 parent e55d4ad commit 6fe0cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gensql/inference/gpm/crosscat.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
;; If the targets and constraints are not equal but the overlapping parts are,
;; just remove the overlapping keys and recur the scores.
(every? (fn [shared-key]
(= (shared-key targets)
(shared-key constraints)))
(= (get targets shared-key)
(get constraints shared-key)))
intersection)
(reduce-kv (fn [logp _ view]
;; Filtering view variables happens naturally.
Expand Down

0 comments on commit 6fe0cf2

Please sign in to comment.