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

pReLU eta must be between -1 and 1 #3

Closed
cossio opened this issue Dec 11, 2021 · 2 comments
Closed

pReLU eta must be between -1 and 1 #3

cossio opened this issue Dec 11, 2021 · 2 comments

Comments

@cossio
Copy link
Owner

cossio commented Dec 11, 2021

We can enforce this constraint by parameterizing eta, for example:

eta = tanh(xi)

where now xi is unbounded.

We can use something faster than tanh. Here are some examples:

image

This suggests that the faster alternative is:

eta = xi / (1 + abs(xi))
@cossio
Copy link
Owner Author

cossio commented Dec 12, 2021

We don't have to parameterize eta. Rather, we can use a different parameter. So, instead of using

image

which is required to be between -1 and 1, we can use:

image

which is unbounded.

The relation between the two is:

image

@cossio
Copy link
Owner Author

cossio commented Dec 13, 2021

Closed in e774670

@cossio cossio closed this as completed Dec 13, 2021
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

No branches or pull requests

1 participant