Datasets:

Modalities:
Time-series
Formats:
parquet
ArXiv:
License:
fabiencasenave commited on
Commit
86b9566
·
verified ·
1 Parent(s): 4210682

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +112 -0
README.md CHANGED
@@ -1,4 +1,11 @@
1
  ---
 
 
 
 
 
 
 
2
  dataset_info:
3
  features:
4
  - name: Base_2_3/Zone/CellCenterFields/Density
@@ -58,3 +65,108 @@ configs:
58
  - split: train
59
  path: data/train-*
60
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-sa-4.0
3
+ task_categories:
4
+ - graph-ml
5
+ pretty_name: 3D RANS simulations of the rotor37
6
+ tags:
7
+ - physics learning
8
+ - geometry learning
9
  dataset_info:
10
  features:
11
  - name: Base_2_3/Zone/CellCenterFields/Density
 
65
  - split: train
66
  path: data/train-*
67
  ---
68
+ <p align='center'>
69
+ <img src='https://i.ibb.co/zThPK7B8/Logo-Rotor37-2-consolas-100.png' alt='https://i.ibb.co/zThPK7B8/Logo-Rotor37-2-consolas-100.png' width='1000'/>
70
+ <img src='https://i.ibb.co/DKP161M/rotor37-preview.png' alt='https://i.ibb.co/DKP161M/rotor37-preview.png' width='1000'/>
71
+ </p>
72
+
73
+ ```yaml
74
+ owner: Safran
75
+ license: cc-by-sa-4.0
76
+ data_production:
77
+ type: simulation
78
+ physics: 3D CFD RANS compressor blade
79
+ num_samples:
80
+ test: 200
81
+ train: 1000
82
+ storage_backend: hf_datasets
83
+
84
+ ```
85
+ This dataset was generated with [`plaid`](https://plaid-lib.readthedocs.io/), we refer to this documentation for additional details on how to extract data from `plaid_sample` objects.
86
+
87
+ The simplest way to use this dataset is to first download it:
88
+ ```python
89
+ from plaid.storage import download_from_hub
90
+
91
+ repo_id = "channel/dataset"
92
+ local_folder = "downloaded_dataset"
93
+
94
+ download_from_hub(repo_id, local_folder)
95
+ ```
96
+
97
+ Then, to iterate over the dataset and instantiate samples:
98
+ ```python
99
+ from plaid.storage import init_from_disk
100
+
101
+ local_folder = "downloaded_dataset"
102
+ split_name = "train"
103
+
104
+ datasetdict, converterdict = init_from_disk(local_folder)
105
+
106
+ dataset = datasetdict[split]
107
+ converter = converterdict[split]
108
+
109
+ for i in range(len(dataset)):
110
+ plaid_sample = converter.to_plaid(dataset, i)
111
+ ```
112
+
113
+ It is possible to stream the data directly:
114
+ ```python
115
+ from plaid.storage import init_streaming_from_hub
116
+
117
+ repo_id = "channel/dataset"
118
+
119
+ datasetdict, converterdict = init_streaming_from_hub(repo_id)
120
+
121
+ dataset = datasetdict[split]
122
+ converter = converterdict[split]
123
+
124
+ for sample_raw in dataset:
125
+ plaid_sample = converter.sample_to_plaid(sample_raw)
126
+ ```
127
+
128
+ Sample features can then be retrieved as follows:
129
+ ```python
130
+ from plaid.storage import load_problem_definitions_from_disk
131
+ local_folder = "downloaded_dataset"
132
+ pb_defs = load_problem_definitions_from_disk(local_folder)
133
+
134
+ # or
135
+ from plaid.storage import load_problem_definitions_from_hub
136
+ repo_id = "channel/dataset"
137
+ pb_defs = load_problem_definitions_from_hub(repo_id)
138
+
139
+
140
+ pb_def = next(iter(pb_defs.values()))
141
+
142
+ plaid_sample = ... # use a method from above to instantiate a plaid sample
143
+
144
+ for t in plaid_sample.get_all_time_values():
145
+ for path in pb_def.input_features:
146
+ feature = plaid_sample.get_feature_by_path(path=path, time=t)
147
+ ...
148
+ for path in pb_def.output_features:
149
+ feature = plaid_sample.get_feature_by_path(path=path, time=t)
150
+ ...
151
+ ```
152
+
153
+ For those familiar with HF's `datasets` library, raw data can be retrieved without using the `plaid` library:
154
+ ```python
155
+ from datasets import load_dataset
156
+
157
+ repo_id = "channel/dataset"
158
+
159
+ datasetdict = load_dataset(repo_id)
160
+
161
+ for split_name, dataset in datasetdict.items():
162
+ for raw_sample in dataset:
163
+ for feat_name in dataset.column_names:
164
+ feature = raw_sample[feat_name]
165
+ ```
166
+ Notice that raw data refers to the variable features only, with a specific encoding for time variable features.
167
+
168
+ ### Dataset Sources
169
+
170
+ - **Papers:**
171
+ - [arxiv](https://arxiv.org/abs/2305.12871)
172
+ - [arxiv](https://arxiv.org/abs/2505.02974)