Skip to content

Commit

Permalink
Update formatting errors timeseries_dataset.py
Browse files Browse the repository at this point in the history
Done changes for black formatting.
  • Loading branch information
SuryanarayanaY authored Nov 6, 2023
1 parent e8da674 commit baa074b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tf_keras/utils/timeseries_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ def timeseries_dataset_from_array(
```python
data = tf.range(15)
sequence_length =10
sequence_length = 10
input_data = data[:]
targets = data[sequence_length:]
dataset = tf.keras.utils.timeseries_dataset_from_array(
input_data, targets, sequence_length=sequence_length)
input_data, targets, sequence_length=sequence_length
)
for batch in dataset:
inputs, targets = batch
# First sequence: steps [0-9]
Expand All @@ -125,7 +126,7 @@ def timeseries_dataset_from_array(
break
# To view the generated dataset
for batch in dataset.as_numpy_iterator():
input, label = batch
input, label = batch
print(f"Input:{input}, target:{label}")
```
Expand Down

0 comments on commit baa074b

Please sign in to comment.