Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -66,140 +66,106 @@ dataset_info:
|
|
| 66 |
dtype: float32
|
| 67 |
---
|
| 68 |
|
| 69 |
-
# Dataset
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
[More Information Needed]
|
| 170 |
-
|
| 171 |
-
### Recommendations
|
| 172 |
-
|
| 173 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 174 |
-
|
| 175 |
-
Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations.
|
| 176 |
-
|
| 177 |
-
## Citation [optional]
|
| 178 |
-
|
| 179 |
-
<!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
|
| 180 |
-
|
| 181 |
-
**BibTeX:**
|
| 182 |
-
|
| 183 |
-
[More Information Needed]
|
| 184 |
-
|
| 185 |
-
**APA:**
|
| 186 |
-
|
| 187 |
-
[More Information Needed]
|
| 188 |
-
|
| 189 |
-
## Glossary [optional]
|
| 190 |
-
|
| 191 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
|
| 192 |
-
|
| 193 |
-
[More Information Needed]
|
| 194 |
-
|
| 195 |
-
## More Information [optional]
|
| 196 |
-
|
| 197 |
-
[More Information Needed]
|
| 198 |
-
|
| 199 |
-
## Dataset Card Authors [optional]
|
| 200 |
-
|
| 201 |
-
[More Information Needed]
|
| 202 |
|
| 203 |
## Dataset Card Contact
|
| 204 |
|
| 205 |
-
[
|
|
|
|
| 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")
|
| 85 |
+
|
| 86 |
+
pyg_data_list = [
|
| 87 |
+
Data(
|
| 88 |
+
frac_coords=torch.tensor(d["frac_coords"]),
|
| 89 |
+
cart_coords=torch.tensor(d["cart_coords"]),
|
| 90 |
+
node_feat=torch.tensor(d["node_feat"]),
|
| 91 |
+
node_type=torch.tensor(d["node_type"]),
|
| 92 |
+
edge_feat=torch.tensor(d["edge_feat"]),
|
| 93 |
+
edge_index=torch.tensor(d["edge_index"]),
|
| 94 |
+
lengths=torch.tensor(d["lengths"]).unsqueeze(0),
|
| 95 |
+
angles=torch.tensor(d["angles"]).unsqueeze(0),
|
| 96 |
+
vector=torch.tensor(d["vector"]).unsqueeze(0),
|
| 97 |
+
y=torch.tensor(d["y"]).unsqueeze(0),
|
| 98 |
+
young=torch.tensor(d["young"]).unsqueeze(0),
|
| 99 |
+
shear=torch.tensor(d["shear"]).unsqueeze(0),
|
| 100 |
+
poisson=torch.tensor(d["poisson"]).unsqueeze(0),
|
| 101 |
+
num_nodes=d["num_nodes"],
|
| 102 |
+
num_atoms=d["num_atoms"]
|
| 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.
|