Questions tagged [incanter]

Incanter is a Clojure-based, R-like platform for statistical computing and graphics.

Incanter can be used as a standalone, interactive data analysis environment or embedded within other analytics systems as a modular suite of libraries.

Features:

  • Charting & visualization functions
  • Mathematical functions
  • Statistical functions
  • Matrix & linear algebra functions
  • Data manipulation functions
68 questions
23
votes
5 answers

Fast vector math in Clojure / Incanter

I'm currently looking into Clojure and Incanter as an alternative to R. (Not that I dislike R, but it just interesting to try out new languages.) I like Incanter and find the syntax appealing, but vectorized operations are quite slow as compared…
Matti Pastell
  • 9,135
  • 3
  • 37
  • 44
10
votes
1 answer

Scientific dataset manipulation in Clojure -- reading ByteBuffers into matrices

I'm looking to use Clojure and Incanter for processing of a large scientific dataset; specifically, the 0.5 degree version of this dataset (only available in binary format). My question is, what recommendations do you have for elegant ways to deal…
Sam Ritchie
  • 10,988
  • 4
  • 42
  • 53
8
votes
4 answers

How can I modify a column in an Incanter dataset?

I'd like to be able to transform an individual column in an incanter data set, and save the resulting data set to a new (csv) file. What is the simplest way to do that? Essentially, I'd like to be able to map a function over a column in the data…
Rob Lachlan
  • 14,289
  • 5
  • 49
  • 99
8
votes
1 answer

Does Incanter have support for sparse matrices?

Does Incanter have support for sparse matrices (multiplication, decomposition, solving)?
Rob Lachlan
  • 14,289
  • 5
  • 49
  • 99
7
votes
2 answers

Is there something like Incanter for Haskell?

Incanter is an R-like library for Clojure. Is there anything like this for Haskell?
Luke Hoersten
  • 8,355
  • 3
  • 21
  • 18
7
votes
1 answer

Importing a CSV with different row widths into Incanter?

I'm trying to import a CSV file with rows of many different lengths into Incanter using the read-dataset function. Unfortunately, it appears to truncate the rows down to the length of the first row. Short of reordering the dataset, or searching for…
7
votes
1 answer

Has anyone used Incanter in a web app to serve statistical graphs?

I'd like to serve up statistical graphs based on Incanter with a framework like Ring or Compojure in a Clojure environment. I haven't seen any examples or links that do this. Could someone steer me toward working examples? Would Enlive help out…
simon-says
  • 71
  • 1
6
votes
1 answer

Clojure : Group-by too slow (13 million-lines file)

Situation I have a 13 million-lines CSV on which I want to perform logistic regression (incanter) for each group. My file is like that (values are just sample) ID Max Probability 1 1 0.5 1 5 0.6 1 10 0.99 2 1 0.1 2 7 0.95 So I first…
Joseph Yourine
  • 1,301
  • 1
  • 8
  • 18
6
votes
2 answers

Struggling with BFGS minimization algorithm for Logistic regression in Clojure with Incanter

I'm trying to implement a simple logistic regression example in Clojure using the Incanter data analysis library. I've successfully coded the Sigmoid and Cost functions, but Incanter's BFGS minimization function seems to be causing me quite some…
5
votes
3 answers

What is the idiomatic way to obtain a sequence of columns from an incanter dataset?

What's the best way to get a sequence of columns (as vectors or whatever) from an Incanter data set? I thought of: (to-vect (trans (to-matrix my-dataset))) But Ideally, I'd like a lazy sequence. Is there a better way?
Rob Lachlan
  • 14,289
  • 5
  • 49
  • 99
5
votes
0 answers

Step-by-step procedure for nested logistic regression in Incanter

After finding this enormously helpful guide in R, it got me wondering how I might do something similar in Incanter. Being relatively new to Incanter, it would be lovely if someone could reproduce this answer. In addition to illustrating a nested…
Peter
  • 4,219
  • 4
  • 28
  • 40
4
votes
2 answers

How to manipulate legend in Incanter chart

I'm trying to include a legend in an Incanter chart, but I'm having some troubles getting what I want: I want to be able to instantiate a chart with no data first (using [] [] as my x y arguments), then add the data points in a separate step. …
Sonicsmooth
  • 2,673
  • 2
  • 22
  • 35
4
votes
1 answer

Incanter-numpy interop

I would like to use Clojure's Incanter, but I'd like to mix in calls to Python's extensive Numpy/Scipy numerical libraries. Is there an interoperability bridge between Incanter and Numpy that allows an embedded runtime of CPython to be run from…
bshanks
  • 1,238
  • 2
  • 12
  • 24
4
votes
0 answers

Fill area in Incanter

Is it possible to create a filled area in a chart using Incanter (Clojure)? I cannot find anything about this in the manual. For instance, say I have the following function to create a simple scatter plot: (defn daycurve-test [] (doto…
4
votes
1 answer

Troubles Importing Clojure Libs in Paradise

I occasionally get this problem, and generally work around it, but it's rather frustrating. I have all of Incanter (check it out if you don't know it: it's superb) on my classpath. I try to import it (through a Slime REPL) like this: user> (use…
Isaac
  • 15,783
  • 9
  • 53
  • 76
1
2 3 4 5