1.2.3-SNAPSHOT permalink Arrow_down_16x16



  • (to-dummies coll)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/core.clj:2172 top

(defn to-dummies [coll]
  (let [cat-var (categorical-var :data coll)
        levels (:levels cat-var)
        encoded-data (to-levels coll :categorical-var cat-var)
        bit-map (get-dummies (count levels))]
    (for [item encoded-data] (nth bit-map item))))
Vars in incanter.core/to-dummies: defn for let nth
Used in 0 other vars

Comments top

No comments for to-dummies. Log in to add a comment.