Comments (4)
I am getting the same error. I tried using a fresh conda environment with Python 3.9 in Mac M2
from orbit.
Same, can't even install it to try out.
from orbit.
Same, can't even install it to try out.
@ar-asur @kaizenlabs conda recipe is updated and should be using the latest version. Can you try it out?
from orbit.
Hi @edwinnglabs
I tried again and was able to install the package successfully with conda install -c conda-forge orbit-ml
.
But when i tried to execute the code from ktr.ipynb
, I got error ValueError: Failed to compile Stan model
when I run the fit
function.
Environment detials:
Python 3.9,
Orbit version 1.1.4.2
cmdstanpy version 1.2.0
Mac M2
Full Traceback:
2023-12-22 10:29:16 - orbit - INFO - Optimizing (PyStan) with algorithm: LBFGS.
2023-12-22 10:29:16 - orbit - INFO - First time in running stan model:ktrlite. Expect 3 - 5 minutes for compilation.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/forecaster/svi.py", line 36, in fit
super().fit(df, sampling_temperature=sampling_temperature, **kwargs)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/forecaster/forecaster.py", line 147, in fit
self._model.set_dynamic_attributes(
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/template/ktr.py", line 1002, in set_dynamic_attributes
self._set_levs_and_seas(df, training_meta)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/template/ktr.py", line 883, in _set_levs_and_seas
ktrlite.fit(df=df)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/forecaster/map.py", line 23, in fit
super().fit(df, **kwargs)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/forecaster/forecaster.py", line 162, in fit
_posterior_samples, training_metrics = estimator.fit(
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/estimators/stan_estimator.py", line 205, in fit
compiled_mod = get_compiled_stan_model(model_name)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/utils/stan.py", line 64, in get_compiled_stan_model
compiled_model = compile_stan_model(stan_model_name)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/utils/stan.py", line 52, in compile_stan_model
sm = CmdStanModel(stan_file=source_model)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/cmdstanpy/model.py", line 252, in __init__
self.compile(force=str(compile).lower() == 'force', _internal=True)
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/cmdstanpy/model.py", line 502, in compile
self._exe_file = compilation.compile_stan_file(
File "/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/cmdstanpy/compilation.py", line 475, in compile_stan_file
raise ValueError(
ValueError: Failed to compile Stan model '/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/stan/ktrlite.stan'. Console:
arm64-apple-darwin20.0.0-clang++ -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /Users/aniruddhar/miniforge3/envs/orbit/include -std=c++1y -Wno-unknown-warning-option -Wno-tautological-compare -Wno-sign-compare -D_REENTRANT -Wno-ignored-attributes -I /Users/aniruddhar/miniforge3/envs/orbit_test/include/ -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -D_FORTIFY_SOURCE=2 -isystem /Users/aniruddhar/miniforge3/envs/orbit/include -DBOOST_DISABLE_ASSERTS -DTBB_INTERFACE_NEW -DTBB_INTERFACE_NEW -c -MT src/cmdstan/main.o -MM -E -MG -MP -MF src/cmdstan/main.d src/cmdstan/main.cpp
--- Translating Stan model to C++ code ---
bin/stanc --filename-in-msg=ktrlite.stan --o=/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/stan/ktrlite.hpp /Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/stan/ktrlite.stan
Error in 'ktrlite.stan', line 29, column 2: Declaration of arrays by placing
brackets after a variable name was removed in Stan 2.33.0. Instead use
the array keyword before the type. This can be changed automatically
using the auto-format flag to stanc
Error in 'ktrlite.stan', line 11, column 2: Declaration of arrays by placing
brackets after a variable name was removed in Stan 2.33.0. Instead use
the array keyword before the type. This can be changed automatically
using the auto-format flag to stanc
make: *** [make/program:50: /Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/stan/ktrlite.hpp] Error 65
Command ['make', 'STANCFLAGS+=--filename-in-msg=ktrlite.stan', '/Users/aniruddhar/miniforge3/envs/orbit_test/lib/python3.9/site-packages/orbit/stan/ktrlite']
error during processing No such file or directory
from orbit.
Related Issues (20)
- RuntimeError: CmdStan failed to install in repackaged directory HOT 13
- Regression stats - p value and R^2
- Mention newly added MLflow support in docs
- overwrite option for cmdstanpy should be False HOT 1
- Support for Python 3.10
- Support more flexible prediction range or improve documentation about prediction range. HOT 1
- KTR predict method doesn't consider single knot case.
- cannot import name 'DLTFull' from 'orbit.models.dlt' HOT 2
- Forecast is Not connected to latest actuals HOT 1
- cmdstanpy does not find the ktrlite stan file
- Installation fails with LLVM libc++ version 16 on M1 Mac
- Update load_iclaims()
- Add ipywidgets into dependencies
- Explore folder pruning while installing cmdstanpy
- Read the docs update by pruning deprecated .rst files
- Documentation Update for v1.1.4.3
- Question: How to set 'date' frequency to minutes \ seconds? HOT 1
- Unable to run KTR after fresh installment HOT 1
- Running cmdstanpy with `exe_file` arg
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orbit.