Comments (3)
If you have missing values in the data, it is most likely a statsmodels native issue: statsmodels/statsmodels#3534
Just in case, I will change how the freq argument is specified in the vecm model to see if that fixes the issue and that will be implemented in 0.14.4, planned for implementation on 9/23/22.
from scalecast.
Please test the model from 0.14.4 to see if you have the same issue. Thanks, as always, for raising the issue!
from scalecast.
I happened to run an example recently where I was able to reproduce this error. I'm seeing that it is most likely from using business-day data. Sometimes business days from various data sources don't line up with the business day definition used by pandas. To fix that, you can use df = df.asfreq('B', method='ffill')
. Replace 'ffill' with the na-fill method of your choice in case nulls are introduced in this process. Make sure the dataframe's index is the datetime column. Here is an example where this would work:
import pandas_datareader as pdr
from scalecast.Forecaster import Forecaster
from scalecast.MVForecaster import MVForecaster
FANG = [
'META',
'AMZN',
'NFLX',
'GOOG',
]
fs = []
for sym in FANG:
df = pdr.get_data_yahoo(sym)
df = df.asfreq('B', method='ffill') # fixes the issue
f = Forecaster(
y=df['Close'],
current_dates = df.index,
future_dates = 65,
end = '2022-09-30',
)
fs.append(f)
mvf = MVForecaster(*fs,names=FANG)
I think this is something that users will have to do in pandas before loading to a scalecast object, as I don't know how this could be implemented into the package.
from scalecast.
Related Issues (20)
- Possible Bug: f.forecast gives Index error HOT 4
- No option to save LSTM model HOT 3
- ModuleNotFoundError: No module named 'src.scalecast' HOT 7
- fbprophet is now named prophet HOT 1
- use_boxcox parameter in holt winters HOT 2
- Question: models save HOT 3
- Scaled Automated Forecasting with LSTM HOT 4
- Forecasting with per minute time series HOT 4
- Error while installing with pip HOT 4
- Scalecast on Apple M1 HOT 1
- Model Testing on Unseen data, when that model is trained using Automated Scale Pipeline methodology. HOT 2
- Exporting Values from forecaster after pipeline.fit_predict()
- add pydlm and check skforecast HOT 1
- impact of exogenous variable on forecasted values HOT 1
- Lags seems not working with tune_test_forecast in MVForecaster HOT 2
- PDEP datetime warnings. HOT 1
- from scalecast.Forecaster import Forecaster gives error HOT 5
- Fitting twice with manual forecast lstm HOT 3
- [Errno 2] No such file or directory when install HOT 1
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 scalecast.