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

The tanh_derivative should be : 1. + values**2 #41

Open
Ningshiqi opened this issue Sep 14, 2018 · 4 comments
Open

The tanh_derivative should be : 1. + values**2 #41

Ningshiqi opened this issue Sep 14, 2018 · 4 comments

Comments

@Ningshiqi
Copy link

No description provided.

@hdsong1996
Copy link

No, he is right.[tanh(x)]'=1-[tanh(x)]^2

@try1995
Copy link

try1995 commented Dec 27, 2020

[tanh(x)]' = [sin(x)/cos(x)]' = (cos(x)^2 + sin(x)^2)/cos(x)^2 = 1 + tanx(x)^2

@laluarif93
Copy link

tanh x is not the same as tan x

@nicodjimenez
Copy link
Owner

It's been a while since I've looked at this codebase... if there's something wrong can someone submit a PR?

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

5 participants