Abhishek Thakur
commited on
Commit
Β·
42bb50f
1
Parent(s):
2f00a93
add some updates/fixes
Browse files- .env.example +1 -3
- README.md +52 -9
- competitions/__init__.py +2 -2
.env.example
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
HF_ACCESS_TOKEN=hf_app_XXX
|
| 2 |
AUTOTRAIN_USERNAME=autoevaluator
|
| 3 |
AUTOTRAIN_TOKEN=hf_XXX
|
| 4 |
-
|
| 5 |
-
MOONLANDING_URL=https://huggingface.co
|
|
|
|
|
|
|
| 1 |
AUTOTRAIN_USERNAME=autoevaluator
|
| 2 |
AUTOTRAIN_TOKEN=hf_XXX
|
| 3 |
+
COMPETITION_ID=zzzz/abc
|
|
|
README.md
CHANGED
|
@@ -1,9 +1,52 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Competitions
|
| 2 |
+
|
| 3 |
+
Create a competition checklist:
|
| 4 |
+
|
| 5 |
+
- [ ] Create a space using https://huggingface.co/new-space
|
| 6 |
+
- [ ] Create a private dataset using https://huggingface.co/new-dataset
|
| 7 |
+
- [ ] Create a public dataset using https://huggingface.co/new-dataset
|
| 8 |
+
- [ ] Add the following secrets to the space:
|
| 9 |
+
- `AUTOTRAIN_TOKEN`: the token of the user that will be used to create autotrain projects
|
| 10 |
+
- `AUTOTRAIN_USERNAME`: the username of the user that will be used to create autotrain projects
|
| 11 |
+
- `COMPETITION_ID`: Private dataset created previously, e.g.: `my_org/my_private_dataset`
|
| 12 |
+
|
| 13 |
+
- Private dataset structure:
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
.
|
| 17 |
+
βββ README.md
|
| 18 |
+
βββ submission_info/
|
| 19 |
+
βββ submissions/
|
| 20 |
+
βββ conf
|
| 21 |
+
βββ solution.csv
|
| 22 |
+
βββ COMPETITION_DESC.md
|
| 23 |
+
βββ SUBMISSION_DESC.md
|
| 24 |
+
|
| 25 |
+
````
|
| 26 |
+
|
| 27 |
+
- Example content for `conf`:
|
| 28 |
+
|
| 29 |
+
```
|
| 30 |
+
{
|
| 31 |
+
"SUBMISSION_LIMIT": 5,
|
| 32 |
+
"SELECTION_LIMIT": 2,
|
| 33 |
+
"END_DATE": "2022-11-23",
|
| 34 |
+
"EVAL_HIGHER_IS_BETTER": 1,
|
| 35 |
+
"DATASET": "abhishek/test_competition_dataset",
|
| 36 |
+
"COMPETITION_NAME": "Shoes vs Boots vs Sandals",
|
| 37 |
+
"SUBMISSION_COLUMNS": "id,target",
|
| 38 |
+
"EVAL_METRIC": "accuracy_score"
|
| 39 |
+
}
|
| 40 |
+
```
|
| 41 |
+
|
| 42 |
+
- Public dataset structure:
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
.
|
| 46 |
+
βββ README.md
|
| 47 |
+
βββ training files (folder/zip/csv)
|
| 48 |
+
βββ test files (folder/zip/csv)
|
| 49 |
+
βββ training labels
|
| 50 |
+
βββ sample_submission.csv
|
| 51 |
+
|
| 52 |
+
```
|
competitions/__init__.py
CHANGED
|
@@ -5,10 +5,10 @@ from .info import CompetitionInfo
|
|
| 5 |
|
| 6 |
__version__ = "0.1.1"
|
| 7 |
|
| 8 |
-
MOONLANDING_URL = os.getenv("MOONLANDING_URL")
|
| 9 |
COMPETITION_ID = os.getenv("COMPETITION_ID")
|
| 10 |
AUTOTRAIN_USERNAME = os.getenv("AUTOTRAIN_USERNAME")
|
| 11 |
AUTOTRAIN_TOKEN = os.getenv("AUTOTRAIN_TOKEN")
|
| 12 |
-
AUTOTRAIN_BACKEND_API = os.getenv("AUTOTRAIN_BACKEND_API")
|
| 13 |
|
| 14 |
competition_info = CompetitionInfo(competition_id=COMPETITION_ID, autotrain_token=AUTOTRAIN_TOKEN)
|
|
|
|
| 5 |
|
| 6 |
__version__ = "0.1.1"
|
| 7 |
|
| 8 |
+
MOONLANDING_URL = os.getenv("MOONLANDING_URL", "https://huggingface.co")
|
| 9 |
COMPETITION_ID = os.getenv("COMPETITION_ID")
|
| 10 |
AUTOTRAIN_USERNAME = os.getenv("AUTOTRAIN_USERNAME")
|
| 11 |
AUTOTRAIN_TOKEN = os.getenv("AUTOTRAIN_TOKEN")
|
| 12 |
+
AUTOTRAIN_BACKEND_API = os.getenv("AUTOTRAIN_BACKEND_API", "https://api.autotrain.huggingface.co")
|
| 13 |
|
| 14 |
competition_info = CompetitionInfo(competition_id=COMPETITION_ID, autotrain_token=AUTOTRAIN_TOKEN)
|