-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Add simple neural network #6452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple neural network #6452
Conversation
@CaedenPH Could you check this one? The other one got closed when I was fixing the pre-commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
As a side note, you could also implement a simple doctest
check
Sure, could you show me an example? |
Very simple, just ```py
|
https://towardsdatascience.com/forward-propagation-in-neural-networks-simplified-math-and-code-version-bbcfef6f9250 | ||
""" | ||
|
||
import doctest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import doctest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
|
||
if __name__ == "__main__": | ||
print(doctest.testmod()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(doctest.testmod()) | |
import doctest | |
doctest.testmod() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
import doctest | ||
|
||
doctest.testmod() | ||
expected = int(input("Expected value: ")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected = int(input("Expected value: ")) | |
expected = int(input("Expected value: ")) |
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.Tests Results: