Draft
Basic Neural Network Implementation
Loading description...
Networks
Neural Networks
NumPy
Arrays
Machine Learning
Artificial Intelligence
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Error margin is set up
0.55
and5
, butassert_approx_equals
accepts maximum of relative/absolute error, which means the fixed tests accept+-0.55
, and the random tests will accept everything.It also means no training is neccessary to pass the kata: see this
That completely slipped my head, I was troubleshooting something and failed to remember to update that! Thanks for telling me!
These tests are testing the specific implementation details that was not mentioned in the description at all.
Meanwhile,
calculate_loss
is not tested at all. So it's very unclear what is actually meant to be tested.Thanks for the note, I completely forgot to add a test for calculate_loss.
For
@test.it("Test Neural Network Initialization")
: These checks ensure that your network's weights are of the correct shape as per the architecture defined in the initialization (SimpleNeuralNetwork(3, 4, 2)
).And lastly
@test.it("Test Forward Pass")
: This test ensures that when your neural network receives an input, it processes the input correctly through its layers and produces an output with the expected dimensions.I thought future people attempting this would know what a forward pass was since it should be neural network fundamentals... but i'll be happy to update the description and clarify! Thanks a lot for your take on this, i'll update the description as soon as I implement the calculate loss test case. :)
This comment has been hidden.
I see, i'll have that fixed soon!
Lots of test cases added and small prompt change, hopefully should put people through hell :)