This is so awesome. Thanks for writing this!
Here's my naive stab at integration with (the :iris dataset available in)
Incanter...
(:require [incanter.core :as i]
[incanter.datasets :as id]
[com.stuartsierra.frequencies :as freq])
(def d (id/get-dataset :iris))
(for [k [:Sepal.Length :Sepal.Width :Petal.Length :Petal.Width ]
]
(-> d
i/to-map
k
frequencies
freq/stats
(assoc :field k) ;; label the stats with the field we
used
))
What do people think about Incanter these days? Is it a forgotten
step-child of clojure data science dreams or ready for a renaissance?
Cheers,
Avram
On Saturday, January 25, 2014 9:39:36 AM UTC-8, Stuart Sierra wrote:
>
> New Clojure library "frequencies"
>
> https://github.com/stuartsierra/frequencies
>
> Basic statistical computations (mean, median, etc.) on **frequency maps**,
> e.g. the map returned by `clojure.core/frequencies`.
>
> A frequency map can represent (or approximate) a large distribution of
> values in a small amount of memory.
>
> Log files, benchmarks, and load tests frequently produce data sets that
> are too large to store entirely in memory. Frequency maps are a convenient
> way to get a summary view of these data sets.
>
>
> Leiningen dependency:
>
> [com.stuartsierra/frequencies "0.1.0-SNAPSHOT"]
>
>
> Special thanks to Craig Andera for code review and Cognitect for 20% time.
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.