Skip to content

Commit

Permalink
Update timeseries_dataset.py
Browse files Browse the repository at this point in the history
Fixed the lint errors
  • Loading branch information
SuryanarayanaY authored Sep 20, 2023
1 parent 84651ad commit e8da674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tf_keras/utils/timeseries_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ def timeseries_dataset_from_array(
input_data, targets, sequence_length=sequence_length)
for batch in dataset:
inputs, targets = batch
assert np.array_equal(inputs[0], data[:sequence_length]) # First sequence: steps [0-9]
# First sequence: steps [0-9]
assert np.array_equal(inputs[0], data[:sequence_length])
# Corresponding target: step 10
assert np.array_equal(targets[0], data[sequence_length])
break
# To view the generated dataset
for batch in dataset.as_numpy_iterator():
input, label = batch
print(f"Input:{input}, target:{label}")
```
Example 3: Temporal regression for many-to-many architectures.
Expand Down

0 comments on commit e8da674

Please sign in to comment.