pystan

import pystan._api failed:ImportError: DLL load failed: The specified module could not be found

痞子三分冷 提交于 2020-11-25 03:41:17
问题 I have installed python 3.7 and want to do some forecasting using fbprophet (https://facebook.github.io/prophet/docs/installation.html#python) But I get this error when installing the package using the command (pip install fbprophet) import pystan File "e:\repos\usf\venv\lib\site-packages\pystan\__init__.py", line 9, in <module> from pystan.api import stanc, stan File "e:\repos\usf\venv\lib\site-packages\pystan\api.py", line 13, in <module> import pystan._api # stanc wrapper ImportError: DLL

Can you use sample weights in pystan or pymc3?

老子叫甜甜 提交于 2019-12-08 01:19:56
问题 If my observed dataset has weights (for example tracking multiplicity) is it possible to provide this either to pystan or pymc3, similar to the function signature (http://mc-stan.org/rstanarm/reference/stan_glm.html) in the rstanarm package: stan_glm(formula, family = gaussian(), data, weights, subset, na.action = NULL, offset = NULL, model = TRUE, x = FALSE, y = TRUE, contrasts = NULL, ..., prior = normal(), prior_intercept = normal(), prior_aux = exponential(), prior_PD = FALSE, algorithm =

Highest Density Interval (HDI) for Posterior Distribution Pystan

拈花ヽ惹草 提交于 2019-12-05 07:08:55
问题 I am seeing that in Pystan, an HDI function can be used to provide a 95% credible interval surrounding the posterior distribution. However, they say it will only work for unimodal distributions. If my model may have a multimodal distribution (up to 4 peaks), is there a way I can find the HDI in Pystan? Thanks! 回答1: I wouldn't consider this a Stan/PyStan-specific issue. The Highest Density Interval is by definition a single interval and therefore inappropriate for characterizing multimodal

Running setup.py install for fbprophet … error

百般思念 提交于 2019-12-02 18:22:26
问题 I cannot install fbprophet or gcc7. I have manually installed a precompiled ephem. Running setup.py install for fbprophet ... error I have tried with python 3.6 and 3.7. I have tried running as administrator and without. My anaconda prompt cannot install anything without throwing errors. I would rather use pip. The problem may be related to pystan. File "d:\python37\lib\site-packages\pystan\api.py", line 13, in <module> import pystan._api # stanc wrapper ImportError: DLL load failed: The