mrdbourke commited on
Commit
fc9eef8
1 Parent(s): 1395868

remove test split

Browse files
Files changed (1) hide show
  1. food_vision_199_classes.py +7 -6
food_vision_199_classes.py CHANGED
@@ -255,7 +255,7 @@ class Food199(datasets.GeneratorBasedBuilder):
255
  df = pd.read_csv(csv)
256
  print("Downloaded annotations.csv")
257
  df_train_annotations = df[["filename", "label"]][df["split"] == "train"].to_dict(orient="records")
258
- df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
259
 
260
  return [
261
  datasets.SplitGenerator(
@@ -263,11 +263,12 @@ class Food199(datasets.GeneratorBasedBuilder):
263
  gen_kwargs={
264
  "annotations": df_train_annotations,
265
  }),
266
- datasets.SplitGenerator(
267
- name=datasets.Split.TEST,
268
- gen_kwargs={
269
- "annotations": df_test_annotations,
270
- })]
 
271
 
272
 
273
  def _generate_examples(self, annotations):
 
255
  df = pd.read_csv(csv)
256
  print("Downloaded annotations.csv")
257
  df_train_annotations = df[["filename", "label"]][df["split"] == "train"].to_dict(orient="records")
258
+ # df_test_annotations = df[["filename", "label"]][df["split"] == "test"].to_dict(orient="records")
259
 
260
  return [
261
  datasets.SplitGenerator(
 
263
  gen_kwargs={
264
  "annotations": df_train_annotations,
265
  }),
266
+ # datasets.SplitGenerator(
267
+ # name=datasets.Split.TEST,
268
+ # gen_kwargs={
269
+ # "annotations": df_test_annotations,
270
+ # })
271
+ ]
272
 
273
 
274
  def _generate_examples(self, annotations):