Skip to content
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

Fix sigmoid function, and add more robust tests #32

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

arulkolla
Copy link

@arulkolla arulkolla commented Apr 1, 2024

The sigmoid function tests are buggy as of now (namely, it is tested on a staggered array, which doesn't run for me). Also, the sigmoid function is written a little messily, so and think it can be improved (namely because you can broadcast the function np.exp.)

@CLAassistant
Copy link

CLAassistant commented Apr 1, 2024

CLA assistant check
All committers have signed the CLA.

@arulkolla
Copy link
Author

The new version of sigmoid makes the tests run twice as fast (for me): 27ms for the old version, 13ms for the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants