Liking cljdoc? Tell your friends :D

svm-techml-smile.features

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.
raw docstring

build-columnclj

(build-column dataset spec)

Add a single column to dataset according to feature-spec.

Add a single column to dataset according to feature-spec.
sourceraw docstring

build-many-columnsclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close