Algorithm
Three Basic Activation Functions For Neural Network Algorithm
Step function The step function is simple, it gets only two values zero or one no matter what the input value is. #!/usr/bin/env python import numpy as np import matplotlib.pylab as plt def step_function(x): return np.array(x>0, dtype=np.int) if __name__ == ‘__main__’: x = np.arange( -5, 5, 0.1 ) y = Read more…