tf.keras.activations.exponential

tf.keras.activations.exponential는 Exponential Activation 함수입니다.



예제

import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt

plt.rcParams['figure.figsize'] = (6, 3)

x = np.linspace(-10, 10, 11)
y = tf.keras.activations.exponential(x).numpy()

print(x)
print(y)

plt.plot(x, y, 'o-')
plt.xlabel('X')
plt.ylabel('Y')
plt.tight_layout()
plt.show()
[-10.  -8.  -6.  -4.  -2.   0.   2.   4.   6.   8.  10.]
[4.53999298e-05 3.35462628e-04 2.47875218e-03 1.83156389e-02
1.35335283e-01 1.00000000e+00 7.38905610e+00 5.45981500e+01
4.03428793e+02 2.98095799e+03 2.20264658e+04]

tf.keras.activations.exponential는 입력값 x에 대해 exp(x) 값을 반환합니다.


tf.keras.activations.exponential


이전글/다음글

이전글 :