core-matrix

intended for specific discussion around core.matrix (usage and development) For general data work check out #data-science
2016-04-18T08:47:33.000002Z

eleonore: possibly sel ?

2016-04-18T08:47:37.000003Z

code here: https://github.com/mikera/core.matrix/pull/118/files

2016-04-18T09:01:11.000005Z

I've been thinking about doing something like specter in core.matrix

2016-04-18T09:23:59.000006Z

otfrom: it seems to be only a selection by index. It makes sense for matrices, but for datasets I'd like to be able to select for when a value in column :a is equal to a 10 for example.

2016-04-18T09:25:51.000007Z

mikera: a specter like thing would be cool

2016-04-18T09:25:58.000008Z

does it really need that much power?

2016-04-18T09:30:56.000009Z

hmmm... getting this atm:

(require [clojure.core.matrix.selection :as $])
CompilerException java.lang.ClassNotFoundException: clojure.core.matrix.selection, compiling:(*cider-repl matty*:53:12) 

2016-04-18T09:31:12.000010Z

with core.matrix 0.51

2016-04-18T09:32:44.000011Z

eleonore: I mean sel in clojure.core.matrix.selection as opposed to the select you were looking at

2016-04-18T09:36:26.000012Z

yes, that's the sel I was talking about

2016-04-18T09:42:18.000013Z

eleonore: does this style not work for you? (sel [[-1 0][1 2]] (where pos?)) ;=> [1 2]

2016-04-18T09:42:36.000014Z

(though I can't even get the ns to load at the moment. I suspect PEBCAK)

2016-04-18T09:45:37.000015Z

otfrom: I got an error when trying it with column name. I'm not using matrices but datasets.

2016-04-18T09:52:40.000016Z

eleonore: is it something you can do using sel in incanter?

2016-04-18T10:18:46.000017Z

otfrom: I'm sure of it, yes! I just wanted to know if I could do this using core.matrix instead of having an extra dependency to handle my datasets

2016-04-18T10:34:08.000018Z

eleonore: I think for now we'll have to go w/incanter (1.5.1-SNAPSHOT).

2016-04-18T10:49:34.000019Z

mikera: were you wanting something lens like from specter or was it more just around the power of the selections?

2016-04-18T12:05:49.000021Z

hi lora

lora 2016-04-18T12:24:14.000022Z

hello otfrom!