FailedPreconditionError in TFDS-V2-Week1

In Week 1, Exercise 1 - Rock, Paper, Scissors, the code throws a error (attached error message). I am unable to load any other data into these notebooks but the same code is working in Google Colab.

FailedPreconditionError: Error executing an HTTP request: libcurl code 6 meaning ‘Couldn’t resolve host name’, error details: Could not resolve host:

can you share a screenshot of the error

Code:
filePath = f"{getcwd()}/data"
print(filePath)
train_data = tfds.load(‘rock_paper_scissors:3.0.0’, split=‘train’, as_supervised=True)
val_data = tfds.load(‘rock_paper_scissors:3.0.0’, split=‘test’, as_supervised=True)

Testing train_data and val_data if loaded correctly

train_data_len = len(list(train_data))
val_data_len = len(list(val_data))

print(train_data_len)
print(val_data_len)


Code:

your error is stating you have used one of arguments as dataset builder which is incorrect

Also as far as I remember this part of the train data must have been already given, until you made any changes to the assignment outside the markers ###YOUR.CODE.START HERE AND ENDS HERE###

then get a fresh copy and write codes only in between the assigned markers.

1 Like

Thanks a lot Ms. Deepti. Thanks for the quick reply, my bad I overlooked that part and went with my assumption.
Screenshot 2024-09-24 163409

1 Like