Fungsi Aktivasi Cheat Pembelajaran Mesin
def elu(z,alpha):
return z if z >= 0 else alpha*(e^z -1)
Poor Piranha
def elu(z,alpha):
return z if z >= 0 else alpha*(e^z -1)
def elu_prime(z,alpha):
return 1 if z > 0 else alpha*np.exp(z)