Fork me on GitHub
#data-science
<
2021-06-28
>
Nazral04:06:49

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

Nazral05:06:10

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

Nazral05:06:39

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

2
Nazral05:06:34

Thanks! That looks exactly like what I want and more maintained

👍 3
dharrigan14:06:55

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

dharrigan14:06:26

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'

dharrigan14:06:44

My deps.edn is just this:

dharrigan14:06:56

{:paths ["src"]

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

dharrigan14:06:17

eval'ing a buffer causes the jvm to crash out

dharrigan14:06:52

Is there advice on what the issue could be?