7-TimeSeries/2-ARIMA Bugs
@Priyeshshrivastav is already working on this.
Since Nov 6, 2026.
- #1065 by @Priyeshshrivastav — open
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- jupyter-notebook, matplotlib, python
- Domain
- data-visualization, machine-learning
Research direction
Open the ARIMA tutorial notebook under 7-TimeSeries/2-ARIMA and review the test_shifted creation and final visualization code blocks. Reproduce both issues in the notebook, then correct the shifted data and plot setup so the results match the guidance and display correctly. Confirm both fixes by rerunning those cells.
Written by the indexing model from the issue text.
Description
I try to follow the tutorial of ARIMAX model to predict the load of energy.
And I encounter two issues as below:
First, the process to creating a test_shifted for model evaluation seems wrong:
the code on guidance is
If you run this code on notebook, you will got the the load+3 column, like this
It's not the same as the original guidance picture ?
The second issue is the last visualization code block.
fig = plt.figure(figsize=(15, 8))
ax = plt.plot(plot_df['timestamp'], plot_df['actual'], color='red', linewidth=4.0)
ax = fig.add_subplot(111)
for t in range(1, HORIZON+1):
x = plot_df['timestamp'][(t-1):]
y = plot_df['t+'+str(t)][0:len(x)]
ax.plot(x, y, color='blue', linewidth=4*math.pow(.9,t), alpha=math.pow(0.8,t))
ax.legend(loc='best')
If run this code directly, it will create a wired picture as below (maybe because my matplotlib version)
To fix this problem. Just move the fig.add_subplot() function above the actual plot.
like this
fig = plt.figure(figsize=(15,8))
ax = fig.add_subplot(111) # or just omit the parameter as the default will be the same
ax.plot(plot_df['timestamp'], plot_df['actual'], color='red', linewidth=4.0)
# the same code
- Dominant language
- Jupyter Notebook
- Stars
- 91.9k
- Forks
- 22.8k
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/ML-For-Beginners
-
6-NLP/3-Translation-Sentiment translate function not found on textblobPossibly taken @chirag-gupta7 claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/ML-For-Beginners#1061 ·
-
multi_class that used on tutorial has been deprecated on sklearn 1.5 versionPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
microsoft/ML-For-Beginners#1059 · 1 comment ·
-
Regression/3-Linear/ polynomial regression example link out of datePossibly taken @kossayokazi claimed this 8 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
microsoft/ML-For-Beginners#1056 · 1 comment ·
-
Classification lessons apply SMOTE before train_test_split, so the test set contains synthetic samplesMay be free again @kossayokazi claimed this 8 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 55/100
microsoft/ML-For-Beginners#1055 · 2 comments ·
-
27Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
microsoft/ML-For-Beginners#1044 · 1 comment ·
All issues in microsoft/ML-For-Beginners
Similar issues
-
javascript metrics priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
LearningCircuit/local-deep-research#8334 ·
Maintainers usually reply within 1 day
-
Flare Refactor
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
conrad-blucher-institute/Flare#209 ·
Maintainers usually reply within 3 days
-
bug notebook mode
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
blixvip/NullMotion#31 ·
Maintainers usually reply within 1 day