Forked from angerman/20091201-libsvm-model-parser.clj
Created
December 3, 2009 12:13
-
-
Save oranenj/248106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn compute-metrics [[header lines]] | |
((fn [[ln & lns*] features experiments] | |
(printf "%d, %d\n" experiments (count features)) | |
(if (not ln) | |
(assoc header | |
:experiments experiments | |
:features features) | |
(recur lns* | |
(time (doall (lazy-combine-sorted features (extract-features ln)))) | |
(inc experiments)))) | |
lines nil 0)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment