data-science

Data science, data analysis, and machine learning in Clojure https://scicloj.github.io/pages/chat_streams/ for additional discussions
Nazral 2021-06-28T04:18:49.036700Z

Hi! any recommended library to calculate distributions (in particular the CDF of the Normal distribution)?

Nazral 2021-06-28T05:44:10.037400Z

Well, I've been using https://clojars.org/distributions/versions/0.1.3-SNAPSHOT and so far so good, but still happy with any recommendation

Nazral 2021-06-29T05:44:39.040100Z

Thanks, I just checked, that's the same underlying java library this clojure library is using

1
genmeblog 2021-06-28T11:07:09.037900Z

You can try fastmath https://generateme.github.io/fastmath/fastmath.random.html

dharrigan 2021-06-28T14:48:55.038400Z

So, just trying things out, and I immediately hit upon a stumbling block 😞

dharrigan 2021-06-28T14:49:26.038600Z

user=> Python path configuration:
  PYTHONHOME = '/home/david/tmp/kevin2/.direnv/python-3.9.5'
  PYTHONPATH = (not set)
  program name = '/home/david/tmp/kevin2/.direnv/python-3.9.5/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/home/david/tmp/kevin2/.direnv/python-3.9.5/bin/python3'
  sys.base_prefix = '/home/david/tmp/kevin2/.direnv/python-3.9.5'
  sys.base_exec_prefix = '/home/david/tmp/kevin2/.direnv/python-3.9.5'
  sys.platlibdir = 'lib'
  sys.executable = '/home/david/tmp/kevin2/.direnv/python-3.9.5/bin/python3'
  sys.prefix = '/home/david/tmp/kevin2/.direnv/python-3.9.5'
  sys.exec_prefix = '/home/david/tmp/kevin2/.direnv/python-3.9.5'
  sys.path = [
    '/home/david/tmp/kevin2/.direnv/python-3.9.5/lib/python39.zip',
    '/home/david/tmp/kevin2/.direnv/python-3.9.5/lib/python3.9',
    '/home/david/tmp/kevin2/.direnv/python-3.9.5/lib/python3.9/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

dharrigan 2021-06-28T14:49:44.038900Z

My deps.edn is just this:

dharrigan 2021-06-28T14:49:56.039100Z

{:paths ["src"]

 :deps {clj-python/libpython-clj {:mvn/version "2.00-beta-22"}
        org.clojure/clojure {:mvn/version "1.10.3"}}}

dharrigan 2021-06-28T14:50:17.039500Z

eval'ing a buffer causes the jvm to crash out

dharrigan 2021-06-28T14:50:52.039800Z

Is there advice on what the issue could be?