Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
This repo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
|
|
|
| 1 |
+
# Empty solution example for the S23DR competition
|
| 2 |
|
| 3 |
+
This repo provides a minimalistic example of a valid, but empty submission to S23DR competition.
|
| 4 |
+
We recommend you take a look at [this example](https://huggingface.co/usm3d/handcrafted_baseline_submission),
|
| 5 |
+
which implements some primitive algorithms and provides useful I/O and visualization functions.
|
| 6 |
+
|
| 7 |
+
This example seeks to simply provide minimal code which succeeds at reading the dataset and producing a solution (in this case two vertices at the origin and edge of zero length connecting them).
|
| 8 |
+
|
| 9 |
+
`script.py` - is the main file which is run by the competition space. It should produce `submission.parquet` as the result of the run. Please see the additional comments in the `script.py` file.
|
| 10 |
+
|
| 11 |
+
---
|
| 12 |
+
license: apache-2.0
|
| 13 |
+
---
|
| 14 |
|
script.py
CHANGED
|
@@ -56,13 +56,14 @@ if __name__ == "__main__":
|
|
| 56 |
data_path = data_path_local
|
| 57 |
|
| 58 |
print(data_path)
|
| 59 |
-
print([str(p) for p in data_path.rglob('*validation*.(arrow|tar)')])
|
| 60 |
|
| 61 |
# dataset = load_dataset(params['dataset'], trust_remote_code=True, use_auth_token=params['token'])
|
| 62 |
data_files = {
|
| 63 |
"validation": [str(p) for p in [*data_path.rglob('*validation*.arrow')]+[*data_path.rglob('*validation*.tar')]],
|
| 64 |
"test": [str(p) for p in [*data_path.rglob('*test*.arrow')]+[*data_path.rglob('*test*.tar')]],
|
| 65 |
}
|
|
|
|
|
|
|
| 66 |
try:
|
| 67 |
dataset = load_dataset(
|
| 68 |
"arrow",
|
|
|
|
| 56 |
data_path = data_path_local
|
| 57 |
|
| 58 |
print(data_path)
|
|
|
|
| 59 |
|
| 60 |
# dataset = load_dataset(params['dataset'], trust_remote_code=True, use_auth_token=params['token'])
|
| 61 |
data_files = {
|
| 62 |
"validation": [str(p) for p in [*data_path.rglob('*validation*.arrow')]+[*data_path.rglob('*validation*.tar')]],
|
| 63 |
"test": [str(p) for p in [*data_path.rglob('*test*.arrow')]+[*data_path.rglob('*test*.tar')]],
|
| 64 |
}
|
| 65 |
+
print(data_files)
|
| 66 |
+
|
| 67 |
try:
|
| 68 |
dataset = load_dataset(
|
| 69 |
"arrow",
|