Datasets:
Correct import + add required params
#2
by lucasmaes - opened
README.md
CHANGED
|
@@ -19,12 +19,13 @@ This Dataset is part of <a href="arxiv.org/abs/2412.00568">The Well Collection</
|
|
| 19 |
2. Use the `WellDataModule` to retrieve data as follows:
|
| 20 |
|
| 21 |
```python
|
| 22 |
-
from the_well.
|
| 23 |
|
| 24 |
# The following line may take a couple of minutes to instantiate the datamodule
|
| 25 |
datamodule = WellDataModule(
|
| 26 |
"hf://datasets/polymathic-ai/",
|
| 27 |
"viscoelastic_instability",
|
|
|
|
| 28 |
)
|
| 29 |
train_dataloader = datamodule.train_dataloader()
|
| 30 |
|
|
|
|
| 19 |
2. Use the `WellDataModule` to retrieve data as follows:
|
| 20 |
|
| 21 |
```python
|
| 22 |
+
from the_well.data import WellDataModule
|
| 23 |
|
| 24 |
# The following line may take a couple of minutes to instantiate the datamodule
|
| 25 |
datamodule = WellDataModule(
|
| 26 |
"hf://datasets/polymathic-ai/",
|
| 27 |
"viscoelastic_instability",
|
| 28 |
+
batch_size=32,
|
| 29 |
)
|
| 30 |
train_dataloader = datamodule.train_dataloader()
|
| 31 |
|