Skip to content

Commit 4a4b692

Browse files
committed
fix: Handle string keys in Crosscat model
1 parent 5e1237e commit 4a4b692

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gensql/inference/gpm/crosscat.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
;; If the targets and constraints are not equal but the overlapping parts are,
8686
;; just remove the overlapping keys and recur the scores.
8787
(every? (fn [shared-key]
88-
(= (shared-key targets)
89-
(shared-key constraints)))
88+
(= (get targets shared-key)
89+
(get constraints shared-key)))
9090
intersection)
9191
(reduce-kv (fn [logp _ view]
9292
;; Filtering view variables happens naturally.

0 commit comments

Comments
 (0)