Skip to content

Commit

Permalink
fix backcast creation in N_BEATS model
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdbourke committed Sep 27, 2021
1 parent 1673987 commit e568d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 10_time_series_forecasting_in_tensorflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"name": "10_time_series_forecasting_in_tensorflow.ipynb",
"provenance": [],
"collapsed_sections": [],
"authorship_tag": "ABX9TyOg0AjtO/b6HxZxVx292gML",
"authorship_tag": "ABX9TyOn99CSV9y2h4ZBT3mbjba3",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -6706,7 +6706,7 @@
"stack_input = layers.Input(shape=(INPUT_SIZE), name=\"stack_input\")\n",
"\n",
"# 3. Create initial backcast and forecast input (backwards predictions are referred to as residuals in the paper)\n",
"residuals, forecast = nbeats_block_layer(stack_input)\n",
"backcast, forecast = nbeats_block_layer(stack_input)\n",
"# Add in subtraction residual link, thank you to: https://github.com/mrdbourke/tensorflow-deep-learning/discussions/174 \n",
"residuals = layers.subtract([stack_input, backcast], name=f\"subtract_00\") \n",
"\n",
Expand Down

0 comments on commit e568d64

Please sign in to comment.