Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Haleshot committed Aug 22, 2024
1 parent c13280d commit 8ec859b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions easy/Leaky_ReLU_Activation_Function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ def leaky_relu(z: float, alpha: float = 0.01) -> float | int: # type: ignore
return z
else:
return alpha * z

print(leaky_relu(0))
# Output: 0

print(leaky_relu(1))
# Output: 1

print(leaky_relu(-1))
# Output: -0.01

print(leaky_relu(-2, alpha=0.1))
# Output: -0.2

```

## Code Explanation
Expand Down

0 comments on commit 8ec859b

Please sign in to comment.