I’m working on programming assignments on neural-networks-for-binary-classification material, when I run the code a notification appears all tests are passed but when I try to submit my assignment it is rejected and I didn’t change the code just added some elements
Hello @doraleonn
It seems like the issue is caused by an IndexError, where you’re trying to index a 1D array with two indices. This could happen if the shapes of X
or y
don’t match the expected format. Make sure X
is 2D with shape (num_samples, num_features)
and y
is 1D with shape (num_samples,)
. Also, check if any custom plotting or indexing might be causing the error. Try printing the shapes of your variables to ensure they align with the model’s input expectations. Let me know if you need further clarification!
thank you sir for the explanation, I will try again
@doraleonn, just a friendly reminder:
Posting solution code in a public topic goes against our Community Forum Code of Conduct. It’s okay to share images of any error messages.
Please edit your post.
Here’s a guide on how to edit a post.
thanks sir for your reminder
I have re-opened this thread. I was mistaken about whether there was a duplicate thread.