add datamodule

This commit is contained in:
Filippo Olivo
2025-09-23 09:44:21 +02:00
parent 6fa720e2e8
commit c2d6937bfc
2 changed files with 103 additions and 0 deletions

13
tests/test_datamodule.py Normal file
View File

@@ -0,0 +1,13 @@
from ThermalSolver.data_module import GraphDataModule
def test_graph_data_module():
data_module = GraphDataModule(
hf_repo="SISSAmathLab/thermal-conduction",
split_name="pytest",
train_size=0.8,
val_size=0.1,
test_size=0.1,
batch_size=32,
)
data_module.prepare_data()
data_module.setup("fit")