Code works successfully but grader says: missing 2 required positional arguments: 'op' and 'message'

This assignment seemed straight forward but grader keep giving me the following error

Can't compile the student's code. Error: TypeError("__init__() missing 2 required positional arguments: 'op' and 'message'",)

As far as I can tell my code works as expected but not sure what that error means TBH. Here are some screenshot of the results I got when running the code:

1. One-Hot Encoding

2. Loading Dataset

3. Mapping one hot encode function to dataset

4. Exploring dataset metadata

5. Training your simple CNN classifier

6. Evaluation

I saw a similar question here but I don’t have the same issue. Can you please help?

Anyone have seen this behavior before, input is appreciated!

Hi @GHudeihed! :wave:

Did you try adding data_dir argument to tfds.load?

Can you share the notebook in DM with me, please?

1 Like

I have the same problem. Everything looks good (as expected). I also used data_dir and it didn’t help. @yurij Could you please share your solution to this problem?

1 Like

Hi @yurij, I experience the same issue, and I used data_dir argument.
Is there any other solution to this problem?

1 Like

Ok, I actually resolved it. It seems using data_dir = filePath gives expected outcome in my case. :slight_smile :slight_smile:


That worked for me, too. Thank you!

1 Like

@Branko_Popovic, @Michael16, I am happy to hear that you’ve resolved the issue :slight_smile:

1 Like