tensorflow / datasets

TFDS is a collection of datasets ready to use with TensorFlow, Jax, ...
https://www.tensorflow.org/datasets
Apache License 2.0
4.28k stars 1.53k forks source link

Load iris dataset failed due to 404 #4956

Closed arti1117 closed 1 year ago

arti1117 commented 1 year ago

/!\ PLEASE INCLUDE THE FULL STACKTRACE AND CODE SNIPPET

Description Running tfds.load("iris") raises:

[/usr/local/lib/python3.10/dist-packages/tensorflow_datasets/core/download/downloader.py](https://localhost:8080/#) in _assert_status(response)
    327   """Ensure the URL response is 200."""
    328   if response.status_code != 200:
--> 329     raise DownloadError(
    330         'Failed to get url {}. HTTP code: {}.'.format(
    331             response.url, response.status_code

DownloadError: Failed to get url https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data. HTTP code: 404.

Environment information

Reproduction instructions

import tensorflow_datasets as tfds
iris, iris_info = tfds.load('iris')

Expected behavior Load iris dataset successfully.

It seems like same issue as citrus_leaves raises 404 Error.

ccl-core commented 1 year ago

Hi @arti1117 , thank you for reporting this issue!

commit #4957 32c00bb is now merged which fixes the url in the iris dataset. The change will be reflected in tfds-nightly in a couple of days max and in tensorflow-datasets in the next release.