ctguxp / pyjags-rpy

ugly, hacky python-interface to jags using rjags via rpy2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyjags

WARNING: This is not the same project as @tmiasko's pyjags which uses JAGS directly instead of going through R. I guess this repo is superseded by @tmiasko's pyjags (though I haven't tested it yet).

Ugly ass hell wrapper to access JAGS from python. It uses rpy to access JAGS via R (did I mention how ugly this is?).

WARNING: No protection whatsoever! It happily passes variables back and forth between R and python without checking for overwriting them etc.

  • Don't attempt to use multiple models in the same program (simultaneously, one after the other is ok)
  • the code will mess with rpy2's R instance, i.e., if you run R-magics, the environment is changed by this code

Requirements:

  • JAGS
  • R
  • rjags (R package)
  • rpy2 (python package)
  • ipython (python package)

install

(not really recommended)

pip install git+git://github.com/ihrke/pyjags@master

About

ugly, hacky python-interface to jags using rjags via rpy2


Languages

Language:Jupyter Notebook 43.8%Language:Python 34.0%Language:R 22.2%