Skip to content

Instantly share code, notes, and snippets.

View abhishek540's full-sized avatar
🏠
Working from home

abhishek540 abhishek540

🏠
Working from home
View GitHub Profile
@abhishek540
abhishek540 / Activation_Functions.py
Last active October 13, 2021 14:42
MLPro Solution - For easy revsion
import numpy as np
def sigmoid(x):
return 1/(1+np.exp(-x))
def tanh(x):
return (np.exp(x)-np.exp(-x))/(np.exp(x)+np.exp(-x))
def relu(x):
return max(0.0,x)