tensorflow / tensorflow/datasets

radon dataset BASE_URL has changed - downloading fails with 403 redirect

Open
#11,134 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
4.6k
Forks
1.6k
Avg merge
3h 54m
Merged PRs (30d)
1

Description

Short description
The location (BASE_URL) of this dataset has changed. When attempting to use the 'Radon' dataset: download fails on a 403 redirect.

Environment information

  • Operating System: Windows 11 (but should fail on all OSes)

  • Python version: 3.13

  • tensorflow-datasets version: 4.9.9

  • tensorflow version: 2.20.0

  • Does the issue still exists with the last tfds-nightly package (pip install --upgrade tfds-nightly) ? YES

Reproduction instructions

import tensorflow as tf
import tensorflow_datasets as tfds

data = tfds.load('radon', split='train', as_supervised=True)

If you share a colab, make sure to update the permissions to share it.

Link to logs
(https://gist.github.com/nanderoo/dab2f4b73832cafcbf9306669d8978c1)

Expected behavior
Dataset is downloaded and cached for future use.

Additional context
Encountered this while running a jupyter notebook example, but the error can be reproduced by simple python cli as well. I was able to work around this by manually updating the BASE_URL on line 31 for the Radon Dataset ~/lib/site-packages/tensorflow_datasets/datasets/radon/radon_dataset_builder.py to be: https://sites.stat.columbia.edu/gelman/arm/examples/radon/ which is where the 403 redirect takes you to now.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Radon dataset builder in radon_dataset_builder.py and inspect the BASE_URL around line 31. Reproduce the failure with the provided tfds.load('radon', split='train', as_supervised=True) example, update the dataset location to the working URL, and confirm the dataset downloads and is cached successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
data
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.