Code Monkey home page Code Monkey logo

jupyter_case_studies's People

Contributors

betanalpha avatar seantalts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupyter_case_studies's Issues

Pip release - pip installable

Do you think stan_utility could be put to pypi?

This would enable users to pip install it. Otherwise this could be installable from git too. Just needs same structure as pypi thing (setup.py + some init)

(I still think all the updates here should go to pystan too).

This would enable you to pin down version and show it where these are used.

stan_cache

Hi,

When I installed pystan the first time I ran into problems with a missing stan_cache.
I solved it by simply changing the code in utils.py

But now I have installed on the institutes server (requested it). Again I meet the same problem, while using compile_model:
No such file or directory: '/home/micmad/.stan_cache/cached-model-c4ed8c57c14f2eabbd4599b428df4a4c.pkl'

I do not have root access, making it hard to manually change the code. Is there a way to specify a location as your cache?

Thanks in advance
Michael

Some fixes for stan_utility

Hi, here are some comments for the stan_utility.py.

python 2

Use from __future__ import division, print_function for py2 compatibility
If division is not imported all the division n/N will result to 0.

precision when printing

In prints use formatter to control the number of digits (e.g. 2)

"{:.2f}%".format(n/N)

_by_chain -function (also see the next subject)

equals to

numpy.swapaxes(ef, 0, 1)

reshaping extract

lines 48 and 49

ef = _by_chain(ef)
ef = ef.reshape(-1, len(ef[0][0]))

equals to

ef = ef.reshape(-1, ef.shape[-1], order='F')

line 53

no need to call extract()

fit.extract().keys() == fit.sim['pars_oi']

line 56

should this line save the result?

shaped[param_name] = shaped[param_name].reshape(*([-1] + dim))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.