RoboticsClubIITJ / ML-DL-implementation

An implementation of ML and DL algorithms from scratch in python using nothing but NumPy and Matplotlib.
BSD 3-Clause "New" or "Revised" License
48 stars 69 forks source link

Added derivative of tanh #78

Closed Abjcodes closed 3 years ago

Abjcodes commented 3 years ago

References to other Issues or PRs or Relevant literature

Fixes #60

Brief description of what is fixed or changed

Created TanH class with activation and derivative methods. The derivative method returns the array of derivatives of hyperbolic tangent function on X Vector.

Other comments

rohansingh9001 commented 3 years ago

@Abjcodes while the code and formatting and docstrings are correct, tanh refers to the hyperbolic tangent function and not the inverse of a normal trigonometric tangent. Please make the changes in your docstrings. Rest LGTM

Abjcodes commented 3 years ago

@Abjcodes while the code and formatting and docstrings are correct, tanh refers to the hyperbolic tangent function and not the inverse of a normal trigonometric tangent. Please make the changes in your docstrings. Rest LGTM

Sure. I have made the changes.