Generic column-building DSL for tech.ml.dataset.
A feature spec is a map with: :column — keyword naming the output column :assoc-fn — (fn [dataset]) → column-values (for columns derived from the whole dataset) OR :map-fn — (fn [& col-vals]) → scalar (applied element-wise) :arg-cols — vector of column keywords fed to :map-fn
Either :assoc-fn or (:map-fn + :arg-cols) must be present.
Generic column-building DSL for tech.ml.dataset. A feature spec is a map with: :column — keyword naming the output column :assoc-fn — (fn [dataset]) → column-values (for columns derived from the whole dataset) OR :map-fn — (fn [& col-vals]) → scalar (applied element-wise) :arg-cols — vector of column keywords fed to :map-fn Either :assoc-fn or (:map-fn + :arg-cols) must be present.
(build-column dataset spec)Add a single column to dataset according to feature-spec.
Add a single column to dataset according to feature-spec.
(build-many-columns dataset specs)Reduce over a sequence of feature specs, adding each column in order.
Reduce over a sequence of feature specs, adding each column in order.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |