weka-clj.feature.extraction

attributize

(attributize data)

Takes a sequence of maps and returns: clojure.lang.PresistentList<weka.core.Attribute>

make-instance

(make-instance dataset attrs item)

Takes a dataset (weka.core.Instances), a map of attributes and a new data point to be converted to an instance. Returns a weka.core.Instance.

maps->instances

(maps->instances data)(maps->instances data ds-name)

Takes a sequence of maps and a dataset relation name.

Returns a map of shape:

{:attributes clojure.lang.PresistentList<weka.core.Attribute> :instances weka.core.Instances}