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

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +100 -134
README.md CHANGED
@@ -66,140 +66,106 @@ dataset_info:
66
  dtype: float32
67
  ---
68
 
69
- # Dataset Card for Dataset Name
70
-
71
- <!-- Provide a quick summary of the dataset. -->
72
-
73
- This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1).
74
-
75
- ## Dataset Details
76
-
77
- ### Dataset Description
78
-
79
- <!-- Provide a longer summary of what this dataset is. -->
80
-
81
-
82
-
83
- - **Curated by:** [More Information Needed]
84
- - **Funded by [optional]:** [More Information Needed]
85
- - **Shared by [optional]:** [More Information Needed]
86
- - **Language(s) (NLP):** [More Information Needed]
87
- - **License:** [More Information Needed]
88
-
89
- ### Dataset Sources [optional]
90
-
91
- <!-- Provide the basic links for the dataset. -->
92
-
93
- - **Repository:** [More Information Needed]
94
- - **Paper [optional]:** [More Information Needed]
95
- - **Demo [optional]:** [More Information Needed]
96
-
97
- ## Uses
98
-
99
- <!-- Address questions around how the dataset is intended to be used. -->
100
-
101
- ### Direct Use
102
-
103
- <!-- This section describes suitable use cases for the dataset. -->
104
-
105
- [More Information Needed]
106
-
107
- ### Out-of-Scope Use
108
-
109
- <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
110
-
111
- [More Information Needed]
112
-
113
- ## Dataset Structure
114
-
115
- <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
116
-
117
- [More Information Needed]
118
-
119
- ## Dataset Creation
120
-
121
- ### Curation Rationale
122
-
123
- <!-- Motivation for the creation of this dataset. -->
124
-
125
- [More Information Needed]
126
-
127
- ### Source Data
128
-
129
- <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
130
-
131
- #### Data Collection and Processing
132
-
133
- <!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
134
-
135
- [More Information Needed]
136
-
137
- #### Who are the source data producers?
138
-
139
- <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
140
-
141
- [More Information Needed]
142
-
143
- ### Annotations [optional]
144
-
145
- <!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
146
-
147
- #### Annotation process
148
-
149
- <!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
150
-
151
- [More Information Needed]
152
-
153
- #### Who are the annotators?
154
-
155
- <!-- This section describes the people or systems who created the annotations. -->
156
-
157
- [More Information Needed]
158
-
159
- #### Personal and Sensitive Information
160
-
161
- <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
162
-
163
- [More Information Needed]
164
-
165
- ## Bias, Risks, and Limitations
166
-
167
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
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
- [More Information Needed]
 
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.