Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #2 from jaley/master

Fix sparse input data (missing attributes).
  • Loading branch information...
commit 9ad60145b1b70ca94dc4b30c1119be7b8a26e84b 2 parents c9b0819 + b24185d
Ben Mabey bmabey authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  src/clj_ml/data.clj
3  src/clj_ml/data.clj
@@ -130,8 +130,7 @@
130 130 ([dataset vector]
131 131 (make-instance dataset 1 vector))
132 132 ([dataset weight vector]
133   - (let [^Instance inst (new Instance
134   - (count vector))]
  133 + (let [^Instance inst (new Instance (.numAttributes ^ClojureInstances dataset))]
135 134 (do (.setDataset inst dataset)
136 135 (loop [vs vector
137 136 c 0]

0 comments on commit 9ad6014

Please sign in to comment.
Something went wrong with that request. Please try again.