Skip to content

Commit 062a578

Browse files
Update time_series.ipynb
Changed 'tf.keras.preprocessing.timeseries_dataset_from_array' to 'tf.keras.utils.timeseries_dataset_from_array' in '4. Create tf.data.Datasets' section.
1 parent 96a0845 commit 062a578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/tutorials/structured_data/time_series.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@
936936
"id": "kLO3SFR9Osdf"
937937
},
938938
"source": [
939-
"Finally, this `make_dataset` method will take a time series DataFrame and convert it to a `tf.data.Dataset` of `(input_window, label_window)` pairs using the `preprocessing.timeseries_dataset_from_array` function:"
939+
"Finally, this `make_dataset` method will take a time series DataFrame and convert it to a `tf.data.Dataset` of `(input_window, label_window)` pairs using the `tf.keras.utils.timeseries_dataset_from_array` function:"
940940
]
941941
},
942942
{
@@ -949,7 +949,7 @@
949949
"source": [
950950
"def make_dataset(self, data):\n",
951951
" data = np.array(data, dtype=np.float32)\n",
952-
" ds = tf.keras.preprocessing.timeseries_dataset_from_array(\n",
952+
" ds = tf.keras.utils.timeseries_dataset_from_array(\n",
953953
" data=data,\n",
954954
" targets=None,\n",
955955
" sequence_length=self.total_window_size,\n",

0 commit comments

Comments
 (0)