Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -2353,7 +2353,7 @@ dataset_info:
|
|
| 2353 |
|
| 2354 |
This dataset contains a single huggingface split, named 'all_samples'.
|
| 2355 |
|
| 2356 |
-
The samples contains a single huggingface feature, named
|
| 2357 |
|
| 2358 |
Samples are instances of [plaid.containers.sample.Sample](https://plaid-lib.readthedocs.io/en/latest/autoapi/plaid/containers/sample/index.html#plaid.containers.sample.Sample).
|
| 2359 |
Mesh objects included in samples follow the [CGNS](https://cgns.github.io/) standard, and can be converted in
|
|
@@ -2371,7 +2371,7 @@ dataset = load_dataset("chanel/dataset", split="all_samples")
|
|
| 2371 |
|
| 2372 |
# Get the first sample of the first split
|
| 2373 |
split_names = list(dataset.description["split"].keys())
|
| 2374 |
-
ids_split_0 = dataset.description["split"][split_names[
|
| 2375 |
sample_0_split_0 = dataset[ids_split_0[0]]["sample"]
|
| 2376 |
plaid_sample = Sample.model_validate(pickle.loads(sample_0_split_0))
|
| 2377 |
print("type(plaid_sample) =", type(plaid_sample))
|
|
|
|
| 2353 |
|
| 2354 |
This dataset contains a single huggingface split, named 'all_samples'.
|
| 2355 |
|
| 2356 |
+
The samples contains a single huggingface feature, named "sample".
|
| 2357 |
|
| 2358 |
Samples are instances of [plaid.containers.sample.Sample](https://plaid-lib.readthedocs.io/en/latest/autoapi/plaid/containers/sample/index.html#plaid.containers.sample.Sample).
|
| 2359 |
Mesh objects included in samples follow the [CGNS](https://cgns.github.io/) standard, and can be converted in
|
|
|
|
| 2371 |
|
| 2372 |
# Get the first sample of the first split
|
| 2373 |
split_names = list(dataset.description["split"].keys())
|
| 2374 |
+
ids_split_0 = dataset.description["split"][split_names[1]]
|
| 2375 |
sample_0_split_0 = dataset[ids_split_0[0]]["sample"]
|
| 2376 |
plaid_sample = Sample.model_validate(pickle.loads(sample_0_split_0))
|
| 2377 |
print("type(plaid_sample) =", type(plaid_sample))
|