Skip to content

Commit

Permalink
made majority default for random
Browse files Browse the repository at this point in the history
  • Loading branch information
behrica committed Feb 10, 2024
1 parent 9a0e26e commit 68cd88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scicloj/metamorph/ml/classification.clj
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
(let [ target-column-name (-> model :target-columns first)
dummy-labels
(take (ds/row-count feature-ds)
(case (:dummy-strategy options)
(case (get options :dummy-strategy :majority-class)
:majority-class (repeat (:majority-class model-data))
:fixed-class (repeat (:fixed-class options))
:random-class (repeatedly
Expand Down

0 comments on commit 68cd88c

Please sign in to comment.