Skip to content

Commit

Permalink
code samples for dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
emptymalei committed Nov 27, 2023
1 parent b994e10 commit 4d6c710
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions dl/notebooks/pendulum_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@
#
# In this notebook, we demo a dataset we created to simulate the oscillations of a pendulumn.

# +
import matplotlib.pyplot as plt
import pandas as pd
from ts_dl_utils.datasets.dataset import DataFrameDataset
from ts_dl_utils.datasets.pendulum import Pendulum, PendulumDataModule

# -

# ## Data
#
# We create a dataset that models a damped pendulum. The pendulum is modelled as a damped harmonic oscillator, i.e.,
Expand Down Expand Up @@ -60,8 +57,6 @@

# ### PyTorch and Lighting DataModule

# #### DataModule

history_length = 100
horizon = 5

Expand Down
1 change: 1 addition & 0 deletions dl/notebooks/ts_dl_utils/datasets/pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pandas as pd
import torch
from torch.utils.data import DataLoader, Dataset
from ts_dl_utils.datasets.dataset import DataFrameDataset


class Pendulum:
Expand Down

0 comments on commit 4d6c710

Please sign in to comment.