tensorflow / datasets

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

RecursionError using tfds.load to import tensorflow-dataset (Mac) #5417

Open valeriogiampa opened 2 months ago

valeriogiampa commented 2 months ago

Short description tfds.load function does not work properly.

Environment information

Reproduction instructions

import tensorflow as tf
import sklearn
import tensorflow_datasets as tfds

print(tf.__version__)
print(sklearn.__version__)

# Load the Iris dataset
(data), info = tfds.load('iris', with_info=True, split='train')

Link to logs the log is in the attached file log.docx

Expected behavior What you expected to happen.

Additional context The code is the same available in google documentation and inside the Google Cloud Machine Learning didactic materials from EICTA.

pierrot0 commented 2 months ago

Hi Valerio,

Would you mind sharing the stack-trace and error you are getting please? The code you provided doesn't lead to any errors on my side.

I tested with both TFDS 4.9.4 and nightly.

Thanks, Pierre

valeriogiampa commented 2 months ago

I have uploaded the screenshot of the executed code using python and using Jupyter.

Log2.docx