Yong99 commited on
Commit
0257255
·
verified ·
1 Parent(s): 0b4e50a

Update prediction_example_etth1.ipynb

Browse files
Files changed (1) hide show
  1. prediction_example_etth1.ipynb +1 -1
prediction_example_etth1.ipynb CHANGED
@@ -44,7 +44,7 @@
44
  "source": [
45
  "# generate forecast \n",
46
  "prediction_length = 288 # forecast the next 288 timestamps, supporting maximum prediction length encompassed in the context length\n",
47
- "normed_output = model.generate(normed_seqs, max_new_tokens=prediction_length)[:, -prediction_length:]\n",
48
  "output = std * normed_output + mean # rescale the output to the original scale"
49
  ]
50
  },
 
44
  "source": [
45
  "# generate forecast \n",
46
  "prediction_length = 288 # forecast the next 288 timestamps, supporting maximum prediction length encompassed in the context length\n",
47
+ "normed_output = model.generate(normed_seqs, max_new_tokens=prediction_length)\n",
48
  "output = std * normed_output + mean # rescale the output to the original scale"
49
  ]
50
  },