How to plot keras activation functions in a notebook
问题 I wanted to plot all Keras activation functions but some of them are not working. i.e. linear throws an error: AttributeError: 'Series' object has no attribute 'eval' which is weird. How can I plot the rest of my activation functions? points = 100 zeros = np.zeros((points,1)) df = pd.DataFrame({"activation": np.linspace(-1.2,1.2,points)}) df["softmax"] = K.eval(activations.elu(df["activation"])) #df["linear"] = K.eval(activations.linear(df["activation"])) df["tanh"] = K.eval(activations.tanh