Comments (18)
Can you set the env variable before importing statsforecast?
from statsforecast.
You can set the NUMBA_DEBUG_CACHE
env variable to see where the cache is being saved. Here's a minimal example:
import os
from numba import njit
os.environ['NUMBA_DEBUG_CACHE'] = '1'
@njit(cache=True)
def f(x):
return x + 1
print(f(1))
running this script I get:
[cache] index saved to 'C:\\Users\\MyUser\\__pycache__\\test.f-7.py310.nbi'
[cache] data saved to 'C:\\Users\\MyUser\\__pycache__\\test.f-7.py310.1.nbc'
2
from statsforecast.
Hey @neonarc4, thanks for using statsforecast. What do you mean by "reduce the prediction accuracy"? If you want to reduce the compile time you can try caching and if that's the case please update the issue title.
from statsforecast.
os.environ["NIXTLA_NUMBA_CACHE"] = 1
os.environ["NUMBA_CACHE_DIR"] = 'numba_cache'
from statsforecast import StatsForecast
from statsforecast.models import AutoARIMA
sf = StatsForecast(
models=[AutoARIMA(season_length = 12)],
freq='M',
)
sf.fit(df)
is this correct approach ? on window 11
from statsforecast.
the folder remain blank for cache
from statsforecast.
Which version of statsforecast are you using?
from statsforecast.
alright now something broken is ur library doesnt support amd ? dml
from statsforecast.
statsforecast doesn't support GPU acceleration
from statsforecast.
ah lol then how can i fix this caching issue?
from statsforecast.
Which version of statsforecast are you using? The caching variable was introduced in 1.7.0.
from statsforecast.
@jmoralez 1.7.0
from statsforecast import StatsForecast
from statsforecast.models import AutoARIMA
import pandas as pd
import os
os.environ["NIXTLA_NUMBA_CACHE"] = "1"
os.environ["NUMBA_CACHE_DIR"] = "X:/sad/practice/test/aii/data"
df = pd.read_csv("https://datasets-nixtla.s3.amazonaws.com/air-passengers.csv", parse_dates=["ds"])
df.head()
sf = StatsForecast(
models=[AutoARIMA(season_length=12)],
freq="M",
)
sf.fit(df)
forecast_df = sf.predict(h=12, level=[90])
forecast_df.tail()
fig = sf.plot(df, forecast_df, level=[90])
fig.savefig("myfigure.png")
from statsforecast.
from statsforecast.
os.environ["NUMBA_CACHE_DIR"] = "X:/sad/practice/test/aii/data"
I don't think that's a valid path in Windows, it should probably be something like: "X:\sad\practice\test\aii\data"`. You can also not set this variable and just use the default directory (pycache)
from statsforecast.
no luck plz guide me bro
from statsforecast.
sorry fell sleep it doesnt work with statsforcecast
from statsforecast.
from statsforecast import StatsForecast
from statsforecast.models import AutoARIMA
import pandas as pd
import os
from tempfile import TemporaryDirectory
import time
# with TemporaryDirectory() as temp_dir:
# os.environ["NUMBA_CACHE_DIR"] = temp_dir
os.environ["NIXTLA_NUMBA_CACHE"] = "1"
os.environ["NUMBA_DEBUG_CACHE"] = "1"
df = pd.read_csv("https://datasets-nixtla.s3.amazonaws.com/air-passengers.csv", parse_dates=["ds"])
df.head()
sf = StatsForecast(
models=[AutoARIMA(season_length=12)],
freq="M",
)
sf.fit(df)
forecast_df = sf.predict(h=12, level=[90])
forecast_df.tail()
fig = sf.plot(df, forecast_df, level=[90])
fig.savefig("myfigure.png")
ur code work but when i put it on statsforccast it doesnt
from statsforecast.
i love u bro amazing >.</ u fixed thnx alot may god bless u
from statsforecast.
between how it so fast without gpu need ? is my rx 7900 xtx is no needed ? or do i need to run linux machine for acceration on numba or ur library doesnt need gpu ? i am really curious how u able to achieve such insane speed without gpu kinda
from statsforecast.
Related Issues (20)
- remove numba dependency HOT 2
- Adding support for NPTS and Seasonal NPTS HOT 3
- Adding bootstrapping functionnality from residuals of a model
- [Models] provide summary
- StatsForecast/AutoArima ZeroDivisionError HOT 2
- Prediction Interval Questions HOT 6
- Croston: Error fitting with 0.0 values HOT 1
- Make best fitted ARIMA an output of AutoARIMA HOT 2
- IMAPA Model not working in statsforecast=="1.7.2" HOT 1
- Allow external regressors TBATS HOT 2
- FutureWarning in AirPassengersDF
- [AutoETS] Access the model components (Error, Trend and Seasonality) HOT 1
- MSTL Plot HOT 2
- [AutoTBATS,TBATS] Usage example HOT 3
- AutoARIMA import error HOT 2
- Nixtla statsforecast/statsmodels failing to import polars HOT 3
- Independency of Time Series with Different Unique IDs HOT 2
- [Question] AutoARIMA.forward HOT 5
- Statsforecat.predict expects wrong dataframe shape on X_df HOT 10
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 statsforecast.