import tensorflow as tf import numpy as np import matplotlib.pyplot as plt x = np.linspace(-10,10,1000) y = tf.nn.sigmoid(x) plt.plot(x,y) plt.grid() plt.show()
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt x = np.linspace(-10,10,1000) y = tf.nn.tanh(x) plt.plot(x,y) plt.grid() plt.show()
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt x = np.linspace(-10,10,1000) y = tf.nn.relu(x) plt.plot(x,y) plt.grid() plt.show()