PypeR A package that allows you to hit R code from python.
pip install pyper
import pyper
r=pyper.R(use_pandas='True') !It didn't work unless it was set to True
r("soruce(file='stan.R')") !Run stan executable in R
!Fetch an R object.
fit=r.get("fit")
!Bring the stan container and numpy(Number of parameters,Number of steps)It has become.
Recommended Posts