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

Slight performance improvements #36

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

make
Copy link
Contributor

@make make commented Sep 7, 2016

Found that sqrt is not needed to calculate as inequation
max_width / sqrt(D) < theta
equals to inequation
D > max_width² / theta² (at least when all positive)
and when T = 1 / theta² can be precalculated
finally leads to inequation D > max_width² * T

Seeing about 4% computation time decrease (from 100 seconds to 96 seconds) for learning phase with 1000 iterations for input of 10000 x 200 samples.

@make make force-pushed the slight-performance-improvements branch from cf493b7 to e599275 Compare September 15, 2016 14:36
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.

1 participant