albertvillanova HF staff commited on
Commit
9f51446
1 Parent(s): cbe8a8a

Remove deprecated tasks

Browse files

This dataset uses `tasks`, which are deprecated and will raise an error after the next major release of `datasets`. See: https://github.com/huggingface/datasets/pull/6999

Files changed (1) hide show
  1. cats_vs_dogs_sample.py +0 -6
cats_vs_dogs_sample.py CHANGED
@@ -18,7 +18,6 @@ from pathlib import Path
18
  from typing import List
19
 
20
  import datasets
21
- from datasets.tasks import ImageClassification
22
 
23
 
24
  logger = datasets.logging.get_logger(__name__)
@@ -53,11 +52,6 @@ class CatsVsDogs(datasets.GeneratorBasedBuilder):
53
  }
54
  ),
55
  supervised_keys=("image", "labels"),
56
- task_templates=[
57
- ImageClassification(
58
- image_column="image", label_column="labels"
59
- )
60
- ],
61
  homepage=_HOMEPAGE,
62
  citation=_CITATION,
63
  )
 
18
  from typing import List
19
 
20
  import datasets
 
21
 
22
 
23
  logger = datasets.logging.get_logger(__name__)
 
52
  }
53
  ),
54
  supervised_keys=("image", "labels"),
 
 
 
 
 
55
  homepage=_HOMEPAGE,
56
  citation=_CITATION,
57
  )