I have checked all the following.
- I do not added any extra (uncommented) print statements
- I do not added any extra code cells
- I do not changed any of the function parameters
- I do not use any global variables
- I do not change the assignment code outside of where it tells me to
If any of the above statements are not accurate, please let me know, but I have checked many times. Now I am deeply confused.
I will put my code here, so I’m sure you get it. Feel free to delete this, but I want to make sure you get it.
(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)
Where do you think the problem might be, we cannot give you any help without first having any indication where an issue might be!
I would advice you to reset the notebook entirely and try fill in the solutions again.
My guess is there’s something weird with the sigmoid function, or right after that, because the tests for the sigmoid at least produce an output (the tests don’t pass).
Failed default_check. Expected: 0.5, but got: None.
But then after that the tests don’t run at all.
There was a problem grading your submission. Check stderr for more details.
stderr? How do I check it?
I did, this is version 3 because version 2 didn’t work, so I re-wrote everything by hand again to see if that would do anything.
Send me the code for that part on pm, I will have a look at it.
@gent.spah I sent the lab ID in a PM.
The lab ID does not do any good for the mentors. Only the course staff can directly examine your notebooks. Please download your notebook by doing “File → Download as notebook (ipynb)” and then reply to the DM to Gent (a private conversation between you and Gent so it’s ok to share source code) and then attach the notebook file by using the little “Up Arrow” tool on the Reply toolbar.
From the error about “None”, it simply looks like you have not completed all the required code. Everyplace you see the token “None”, it typically means you need to fill in the correct code there.
From the error about “None”, it simply looks like you have not completed all the required code.
I have definitely completed everything. There is no None in the notebook. There’s only None in the tests results.
Paul is giving you some good advice and information. I only wanted that piece of code you suspect as being the problem, copy pasted on a private message but you can include the notebook as you did here on a private message, because i removed it from public as being against the conduct here.
My apologies, as when I uploaded that just now I thought I was actually still in the DMs, not the public thread. I will go an upload it again in the DMs. I cannot give you the snippet of code I suspect of being the problem, because I don’t really suspect any part of my code of being the problem. I don’t have an idea what the error is.
I figured out the issue-
Files to be submitted: C1_W1_Assignment.ipynb
But the file I was writing was C1_W1_3_Assignment. It was really as simple as that. I kind of didn’t notice that message on previous submissions, because I was just clicking through to get it to submit.
I resolved it by deleting the original C1_W1_Assignment and renaming what I was working on to match the file it wanted me to submit.
Ah, good point. It seems a bit counterintuitive: you’d think that clicking “Submit” in whatever notebook you happen to be working on would grade that notebook, but that’s not the way it works. Definitely a violation of the PLA (Principle of Least Astonishment).
FWIW this is mentioned in the DLS FAQ Thread. A lot of the information there is generic to all the courses.
Yeah, mistakes are always out of unawareness, have you noticed? And once you become aware you have a good laugh about it. But thats great you resolved your issue.