Fork me on GitHub
#beginners
<
2020-08-03
>
Joe Lucas01:08:25

Does anyone use clojure for data science?

phronmophobic03:08:40

you can also check out #data-science

David Pham07:08:28

It depends what you mean by data science: you can leverage all python packages, and jvm packages. ClojureScript will be your best weapon on the visualization/reporting side of your models, as you can tap in the power of JS without too much pain. Moreover, you will be able to perform mathematical operations at a decent speed. http://tech.ml.dataset provides a "dataframe" abstraction so that you can perform your usual data manipulation in a way that reminds you of R/python.

practicalli_john08:08:11

Take a look at the https://scicloj.github.io/ community. They are very active. Most discussions happen on Zulip rather than slack

Joe Lucas10:08:07

Thanks all!

SoV401:08:04

yes, it seems many people do, there are some nice presentations from clojure conferences about data science...

SoV401:08:49

there's probably a more experienced hat lurking.

kimim13:08:53

Dear all, when I am reading Luminus annual, I cannot understand this function definition. Could anyone help to explain, thanks.

Jakob Durstberger13:08:07

That’s some nested associative destructuring -> https://clojure.org/guides/destructuring#_associative_destructuring It will get the value file out of a map that looks like this

{ :parameters
  {:multipart 
    {:file file-val}}}
The nested maps will contain more values than the ones I typed in but those are the ones the function “extracts” with destructuring

👍 1
kimim13:08:31

Thank you. Now I fully understand it.

Jakob Durstberger13:08:47

I think it is slightly harder to read than get-in params [:parameters :multipart: :file] but doesn’t require a separate let

kimim13:08:40

Yes. When the pattern is familiar with, it can reduce one line of code..

jacklombard14:08:43

Is there any way to convert a parametrized sql statement like ["SELECT * FROM USER WHERE ID = ?" 9] to a prepared statement in clojure.jdbc?

jacklombard14:08:27

The prepare statement only accepts a string and not a vector

dharrigan14:08:07

Perhaps you might like to consider next-jdbc? It's the "next-generation" clojure.java.jdbc library 🙂

dharrigan14:08:13

You can ask also in #sql too :)

jacklombard14:08:36

We use clojure.jdbc heavily in our project, would be difficult to migrate now

Ody23:08:15

Is it possible to make android apps with clojure?

noisesmith00:08:58

there's a fork that works with the dalvik vm, but it's not supported by the core team, and the start up time is painfully long

noisesmith00:08:25

I think people have better luck with clojurescript with react-native or webapps