API for clj-ml.data
by
Antonio Garrote <antoniogarrote@gmail.com>
Usage:
(ns your-namespace
(:require clj-ml.data))
Overview
This namespace contains several functions for
building creating and manipulating data sets and instances. The formats of
these data sets as well as their classes can be modified and assigned to
the instances. Finally data sets can be transformed into Clojure sequences
that can be transformed using usual Clojure functions like map, reduce, etc.
Public Variables and Functions
dataset-add
function
Usage: (dataset-add dataset vector)
(dataset-add dataset weight vector)
Adds a new instance to a dataset. A clojure vector or an Instance
can be passed as arguments
dataset-at
function
Usage: (dataset-at dataset pos)
Returns the instance at a certain position from the dataset
function
Usage: (dataset-extract-at dataset pos)
Removes and returns the instance at a certain position from the dataset
dataset-pop
function
Usage: (dataset-pop dataset)
Removes and returns the first instance in the dataset
instance-to-map
function
Usage: (instance-to-map instance)
Builds a vector with the values of the instance
instance-to-vector
function
Usage: (instance-to-vector instance)
Builds a vector with the values of the instance
make-dataset
function
Usage: (make-dataset name attributes capacity-or-values & opts)
Creates a new dataset, empty or with the provided instances and options
make-instance
function
Usage: (make-instance dataset vector)
(make-instance dataset weight vector)
Creates a new dataset instance from a vector