Skip to content

Commit fe82bbe

Browse files
Merge pull request #1994 from RenuPatelGoogle:patch-9
PiperOrigin-RevId: 420965347
2 parents 570b2b8 + 062a578 commit fe82bbe

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)