cjpcool commited on
Commit
75d5c1d
·
verified ·
1 Parent(s): 33a87ac

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -45
README.md CHANGED
@@ -65,20 +65,22 @@ dataset_info:
65
  sequence:
66
  dtype: float32
67
  ---
 
68
 
69
- # Dataset Summary
70
 
71
- This dataset contains metamaterial lattice structure data for predicting modulus properties (i.e., Young's modulus, Shear's modulus, and Poisson's ratio), preprocessed into PyTorch Geometric (PyG) compatible format.
72
 
73
- # Dataset Usage
 
 
74
 
75
- It's easy to download and transfer to PyG format using the following steps:
76
 
77
- **Step 1: Download**
78
- ~~~
79
  from datasets import load_dataset
80
  from torch_geometric.data import Data
81
- from torch_geometric.loader import DataLoader
82
  import torch
83
 
84
  dataset = load_dataset("cjpcool/metamaterial-MetaModulus", split="full")
@@ -103,69 +105,78 @@ pyg_data_list = [
103
  )
104
  for d in dataset
105
  ]
106
- ~~~
107
 
108
- **Step 2: Split data to train/valid/test sets**
109
- ~~~
110
  from sklearn.utils import shuffle
111
 
112
  def get_idx_split(data_size, train_size=8000, valid_size=2000, seed=42):
113
  ids = shuffle(range(data_size), random_state=seed)
114
- train_idx, val_idx, test_idx = torch.LongTensor(ids[:train_size]), torch.tensor(
115
- ids[train_size:train_size + valid_size]), torch.tensor(ids[train_size + valid_size:])
116
- split_dict = {'train': train_idx, 'valid': val_idx, 'test': test_idx}
117
- return split_dict
118
- split = get_idx_split(len(dataset), seed=42)
119
 
 
120
  train_data = [pyg_data_list[i] for i in split["train"]]
121
  valid_data = [pyg_data_list[i] for i in split["valid"]]
122
  test_data = [pyg_data_list[i] for i in split["test"]]
123
- ~~~
124
 
125
- **Step 3: Dataloader**
126
- ~~~
127
- train_loader = DataLoader(train_data, batch_size=batch_size, shuffle=True)
128
- valid_loader = DataLoader(valid_data, batch_size=batch_size, shuffle=False)
129
- test_loader = DataLoader(test_data, batch_size=batch_size, shuffle=False)
130
- ~~~
131
 
 
 
 
 
132
 
133
- # Dataset Sources
134
 
 
135
 
136
- - **Repository:** https://github.com/cjpcool/Metamaterial-Benchmark
137
- - **Paper:** MetamatBench: Integrating Heterogeneous Data, Computational Tools, and Visual Interface for Metamaterial Discovery
138
 
 
139
 
140
- # Citation
141
 
142
- We greatly appreciate it if you can cite the dataset via the following:
143
 
 
144
  @inproceedings{metamatBench,
145
- author={Chen, Jianpeng and Zhan, Wangzhi and Wang, Haohui and Jia, Zian and Gan, Jingru and Zhang, Junkai and Qi, Jingyuan and Chen, Tingwei and Huang, Lifu and Chen, Muhao and others},
146
  title = {MetamatBench: Integrating Heterogeneous Data, Computational Tools, and Visual Interface for Metamaterial Discovery},
147
  booktitle = {Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD)},
148
  year = {2025},
149
  publisher = {ACM},
150
  doi = {10.1145/3711896.3737416},
151
- url = {https://doi.org/10.1145/3711896.3737416}
152
  }
153
-
154
- ## Raw Data
155
-
156
- In addition, we thank the raw dataset producers:
157
-
158
- @article{Modulus,
159
- title={Exploring the property space of periodic cellular structures based on crystal networks},
160
- author={Lumpe, Thomas S and Stankovic, Tino},
161
- journal={Proceedings of the National Academy of Sciences},
162
- volume={118},
163
- number={7},
164
- pages={e2003504118},
165
- year={2021},
166
- publisher={National Acad Sciences}
 
 
167
  }
 
 
 
168
 
169
- ## Dataset Card Contact
170
 
171
- Please contact cjpcool[at]outlook[dot]com if you have any questions about this dataset.
 
 
65
  sequence:
66
  dtype: float32
67
  ---
68
+ # 📊 Metamaterial MetaModulus Dataset
69
 
70
+ ## 🧾 Dataset Summary
71
 
72
+ This dataset contains 3D metamaterial lattice structures for predicting mechanical modulus properties, including **Young's modulus**, **Shear modulus**, and **Poisson's ratio**. Each sample is preprocessed into a format compatible with **[PyTorch Geometric (PyG)](https://pytorch-geometric.readthedocs.io/en/latest/)** for downstream machine learning tasks such as structure-property prediction, graph representation learning, and lattice optimization.
73
 
74
+ ---
75
+
76
+ ## 📦 Dataset Usage
77
 
78
+ You can easily download and convert the dataset into `torch_geometric.data.Data` objects using the following steps.
79
 
80
+ ### **Step 1: Load and Convert to PyG Format**
81
+ ```python
82
  from datasets import load_dataset
83
  from torch_geometric.data import Data
 
84
  import torch
85
 
86
  dataset = load_dataset("cjpcool/metamaterial-MetaModulus", split="full")
 
105
  )
106
  for d in dataset
107
  ]
108
+ ```
109
 
110
+ ### **Step 2: Create Train/Valid/Test Splits**
111
+ ```python
112
  from sklearn.utils import shuffle
113
 
114
  def get_idx_split(data_size, train_size=8000, valid_size=2000, seed=42):
115
  ids = shuffle(range(data_size), random_state=seed)
116
+ train_idx = torch.LongTensor(ids[:train_size])
117
+ val_idx = torch.LongTensor(ids[train_size:train_size + valid_size])
118
+ test_idx = torch.LongTensor(ids[train_size + valid_size:])
119
+ return {'train': train_idx, 'valid': val_idx, 'test': test_idx}
 
120
 
121
+ split = get_idx_split(len(dataset), seed=42)
122
  train_data = [pyg_data_list[i] for i in split["train"]]
123
  valid_data = [pyg_data_list[i] for i in split["valid"]]
124
  test_data = [pyg_data_list[i] for i in split["test"]]
125
+ ```
126
 
127
+ ### **Step 3: Create PyG Dataloaders**
128
+ ```python
129
+ from torch_geometric.loader import DataLoader
 
 
 
130
 
131
+ train_loader = DataLoader(train_data, batch_size=32, shuffle=True)
132
+ valid_loader = DataLoader(valid_data, batch_size=32, shuffle=False)
133
+ test_loader = DataLoader(test_data, batch_size=32, shuffle=False)
134
+ ```
135
 
136
+ ---
137
 
138
+ ## 📚 Dataset Source
139
 
140
+ - **Repository:** [github.com/cjpcool/Metamaterial-Benchmark](https://github.com/cjpcool/Metamaterial-Benchmark)
141
+ - **Paper:** *MetamatBench: Integrating Heterogeneous Data, Computational Tools, and Visual Interface for Metamaterial Discovery*, KDD 2025 (Datasets and Benchmarks Track)
142
 
143
+ ---
144
 
145
+ ## 📌 Citation
146
 
147
+ If you use this dataset in your research, please cite the following paper:
148
 
149
+ ```bibtex
150
  @inproceedings{metamatBench,
151
+ author={Chen, Jianpeng and Zhan, Wangzhi and Wang, Haohui and Jia, Zian and Gan, Jingru and Zhang, Junkai and Qi, Jingyuan and Chen, Tingwei and Huang, Lifu and Chen, Muhao and Li, Ling and Wang, Wei and Zhou, Dawei},
152
  title = {MetamatBench: Integrating Heterogeneous Data, Computational Tools, and Visual Interface for Metamaterial Discovery},
153
  booktitle = {Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD)},
154
  year = {2025},
155
  publisher = {ACM},
156
  doi = {10.1145/3711896.3737416},
 
157
  }
158
+ ```
159
+
160
+ ### 🧪 Raw Data Source
161
+
162
+ We acknowledge the original data creators:
163
+
164
+ ```bibtex
165
+ @article{2021lumpeExploring,
166
+ title = {Exploring the property space of periodic cellular structures based on crystal networks},
167
+ author = {Lumpe, Thomas S and Stankovic, Tino},
168
+ journal = {Proceedings of the National Academy of Sciences},
169
+ volume = {118},
170
+ number = {7},
171
+ pages = {e2003504118},
172
+ year = {2021},
173
+ publisher = {National Acad Sciences}
174
  }
175
+ ```
176
+
177
+ ---
178
 
179
+ ## 📬 Contact
180
 
181
+ For questions, feedback, or contributions, please reach out to:
182
+ 📧 `cjpcool [at] outlook [dot] com`