-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Add Maths / Sigmoid Function #3880
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
Conversation
maths/sigmoid.py
Outdated
import numpy as np | ||
|
||
|
||
def sigmoid(vector: float): |
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.
def sigmoid(vector: float): | |
def sigmoid(vector: np.array): |
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.
@xcodz-dot Thank you for your advice. I revised the code and uploaded it.
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.
😄 thanks
@cclauss Can you help me, please? |
maths/sigmoid.py
Outdated
@@ -36,5 +36,4 @@ def sigmoid(vector: np.array) -> np.array: | |||
|
|||
if __name__ == "__main__": | |||
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.
Please run psf/black on this code as discussed in CONTRIBUTING.md because it will reverse this change.
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.
@cclauss Thank you. I modified the code.
@dhruvmanila, This seems good to go |
* Add Maths / Sigmoid Function * Update Sigmoid Function * Add doctest and type hints * Fix Trim Trailing Whitespace * Fix Error * Modified Black * Update sigmoid.py Co-authored-by: sukyung99 <tnrudsla413@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
* Add Maths / Sigmoid Function * Update Sigmoid Function * Add doctest and type hints * Fix Trim Trailing Whitespace * Fix Error * Modified Black * Update sigmoid.py Co-authored-by: sukyung99 <tnrudsla413@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
* Add Maths / Sigmoid Function * Update Sigmoid Function * Add doctest and type hints * Fix Trim Trailing Whitespace * Fix Error * Modified Black * Update sigmoid.py Co-authored-by: sukyung99 <tnrudsla413@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
* Add Maths / Sigmoid Function * Update Sigmoid Function * Add doctest and type hints * Fix Trim Trailing Whitespace * Fix Error * Modified Black * Update sigmoid.py Co-authored-by: sukyung99 <tnrudsla413@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.