Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Kats with CMDSTANPY instead of pystan #103

Closed
lcoulet opened this issue Aug 2, 2021 · 2 comments
Closed

Install Kats with CMDSTANPY instead of pystan #103

lcoulet opened this issue Aug 2, 2021 · 2 comments

Comments

@lcoulet
Copy link

lcoulet commented Aug 2, 2021

Hello, as for prophet it would more than nice to have the ability to avoid installing the pystan software.

e.g. for fbprophet we can proceed as follows:
CMDSTAN=/tmp/cmdstan-2.22.1 STAN_BACKEND=CMDSTANPY pip install prophet

Would that be possible to install Kats the same way ? And to document in the readme ?

@michaelbrundage
Copy link
Contributor

I'm not familiar with CMDSTANPY, but if you want to experiment with this yourself, you could clone Kats, remove the pystan line from requirements.txt, and run pip install . in the root directory of Kats to install it. If CMDSTANPY is importable as import stan that should just drop-in work; otherwise, you would also need to modify the places in Kats where it has import stan. To fix #101 , I will make pystan an optional import.

@michaelbrundage
Copy link
Contributor

After I landed f6d9d94 to fix issue #101, you should now be able to do this by first installing minimal Kats:

MINIMAL=1 pip install .

which will omit pystan and prophet, and then you're free to install optional other dependencies as desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants