From 8ec859beb8551fbcc3ded11c0b55906dd48166c1 Mon Sep 17 00:00:00 2001 From: Srihari Thyagarajan Date: Thu, 22 Aug 2024 22:06:30 +0530 Subject: [PATCH] Update README --- easy/Leaky_ReLU_Activation_Function/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/easy/Leaky_ReLU_Activation_Function/README.md b/easy/Leaky_ReLU_Activation_Function/README.md index c26c698..0f801e7 100644 --- a/easy/Leaky_ReLU_Activation_Function/README.md +++ b/easy/Leaky_ReLU_Activation_Function/README.md @@ -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