I got this compile error during my submission
Cell #3. Can’t compile the student’s code. Error: TypeError(“init() missing 2 required positional arguments: ‘op’ and ‘message’”,)
I tried to pass data_dir
param to all tfds.load with no success
Someone can help me?
Hi Luzio! By any chance, did you rename your notebook? That is usually the error when a blank notebook is detected. The grader will look for the notebook with the original filename.
Hello again! Sorry after looking at similar topics, the problem might be different from my initial haunch. Can you send your notebook to me via direct message so we can troubleshoot? Thanks!
Hi Johannes! Welcome to the community! Kindly check your inbox. We’ll need a copy of your notebook to troubleshoot. Thanks!
I have the same problem. My code works in the compiler but the grader outputs 0/100
I’m having similar challenge, the data_dir wont work, it keeps stating 1 positional argument ‘name’ is missing in the tfds.load()
Hi Randy and Adaramola! Here are some tips from previous cases:
- use the
data_dir
and as_supervised
parameters
- use the
filePath
variable
Please check if you’re doing these and let me know if it still doesn’t work. Thank you!
1 Like
It’s keeps bringing
TypeError: ‘load() requires one missing positional argument: name’
Even after setting data_dir, split & as_supervised
Hi! The name
should be the first argument passed to tfds.load()
(doc here). It should be a string and should correspond to a dataset in the TFDS catalog. This is the dataset needed for this exercise. Let me know if this points you in the right direction. Thanks!
1 Like
hi @chris.favila
I already used data_dir=filePath and set as_supervised=True, also specify the name=‘rock_paper_scissors:3..’, but still got the same error
Hi Richie. Please remove the :3..
from the name
string. You already have the dataset with the expected version in the workspace .
2 Likes
Thanks chris I finally solved this
1 Like
i have same issue, but mine is
Cell #5. Can’t compile the student’s code. Error: TypeError(“init() missing 2 required positional arguments: ‘op’ and ‘message’”,)
Thanks, it worked, name arg also needed to be set.
1 Like