-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added leaky relu, and comments for future funcs
- Loading branch information
1 parent
00cb306
commit e7f4104
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# activation functions in pure python | ||
|
||
# Leaky Relu | ||
def leaky_relu(x): | ||
return max(0.01*x,x) | ||
|
||
# Relu | ||
def relu(x): | ||
return max(0,x) | ||
return max(0,x) | ||
|
||
# Softmax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Mean Square Error (MSE) / L2 Loss | ||
# Mean Absolute Error (MAE) / L1 Loss | ||
# Binary Cross-Entropy Loss / Log Loss | ||
# Categorical Cross-Entropy Loss - **SparseCategoricalCrossEntropy** (cool) | ||
# Hinge Loss | ||
# Huber Loss / Smooth Mean Absolute Error | ||
# Log Loss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Gradient Descent | ||
|
||
# Stochastic Gradient Descent | ||
|
||
# Stochastic Gradient Descent With Momentum | ||
|
||
# Mini Batch Gradient Descent | ||
|
||
# Adagrad (Adaptive Gradient Descent) | ||
|
||
# RMS Prop (Root Mean Square) | ||
|
||
# AdaDelta | ||
|
||
# Adam | ||
|
||
# Nadam |