Skip to content

Commit

Permalink
update tutorial about timeF encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoKaku committed Sep 28, 2023
1 parent a865a88 commit df10550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial/TimesNet_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"\n",
" # find period by amplitudes: here we assume that the peroidic features are basically constant\n",
" # in different batch and channel, so we mean out these two dimensions, getting a list frequency_list with shape[T] \n",
" # each element at pos t of frequency_list demeans the overall amplitude at frequency (t)\n",
" # each element at pos t of frequency_list denotes the overall amplitude at frequency (t)\n",
" frequency_list = abs(xf).mean(0).mean(-1) \n",
" frequency_list[0] = 0\n",
"\n",
Expand Down Expand Up @@ -1315,7 +1315,7 @@
" options:[s:secondly, t:minutely, h:hourly, d:daily, b:business days, w:weekly, m:monthly], you can also use more detailed freq like 15min or 3h')\n",
" So you should check the timestep of your data and set 'freq' arg. \n",
" After the time_features encoding, each date info format will be encoded into \n",
" a list, with each element demeaning the relative position of this time point\n",
" a list, with each element denoting the relative position of this time point\n",
" (e.g. Day of Week, Day of Month, Hour of Day) and each normalized within scope[-0.5, 0.5]\n",
" '''\n",
" data_stamp = time_features(pd.to_datetime(df_stamp['date'].values), freq=self.freq)\n",
Expand Down

0 comments on commit df10550

Please sign in to comment.