TheoLvs commited on
Commit
1431ab9
·
1 Parent(s): 998e8ac

Switched to the right test set

Browse files
Files changed (3) hide show
  1. .gitignore +1 -0
  2. tasks/audio.py +2 -2
  3. tasks/image.py +2 -2
.gitignore CHANGED
@@ -14,3 +14,4 @@ eval-results-bk/
14
  logs/
15
 
16
  emissions.csv
 
 
14
  logs/
15
 
16
  emissions.csv
17
+ notebooks/test.ipynb
tasks/audio.py CHANGED
@@ -41,8 +41,8 @@ async def evaluate_audio(request: AudioEvaluationRequest):
41
  dataset = load_dataset(request.dataset_name,token=os.getenv("HF_TOKEN"))
42
 
43
  # Split dataset
44
- train_test = dataset["train"].train_test_split(test_size=request.test_size, seed=request.test_seed)
45
- test_dataset = train_test["test"]
46
 
47
  # Start tracking emissions
48
  tracker.start()
 
41
  dataset = load_dataset(request.dataset_name,token=os.getenv("HF_TOKEN"))
42
 
43
  # Split dataset
44
+ train_test = dataset["train"]
45
+ test_dataset = dataset["test"]
46
 
47
  # Start tracking emissions
48
  tracker.start()
tasks/image.py CHANGED
@@ -88,8 +88,8 @@ async def evaluate_image(request: ImageEvaluationRequest):
88
  dataset = load_dataset(request.dataset_name, token=os.getenv("HF_TOKEN"))
89
 
90
  # Split dataset
91
- train_test = dataset["train"].train_test_split(test_size=request.test_size, seed=request.test_seed)
92
- test_dataset = train_test["test"]
93
 
94
  # Start tracking emissions
95
  tracker.start()
 
88
  dataset = load_dataset(request.dataset_name, token=os.getenv("HF_TOKEN"))
89
 
90
  # Split dataset
91
+ train_test = dataset["train"]
92
+ test_dataset = dataset["test"]
93
 
94
  # Start tracking emissions
95
  tracker.start()