leadtune/clj-ml — pull request #2 by jaley (2012-09-27 13:50:59+00:00)
Title: Fix sparse input data (missing attributes).

When adding data using make-instance, only the first n attributes appear to exist, where n in the size of the input data vector. This means input data can't be sparse, although the code to follow appears to support it by explicitly labeling the values as pairs?

It seems like the right thing to do as get the number of attributes from the dataset instead? That's what this patch does. It might also be nice to support usage of SparseInstance instead of only Instance? I couldn't figure out a nice way to do this though!