11. Tensorflow training: custom activation function
ฝัง
- เผยแพร่เมื่อ 25 ธ.ค. 2024
- #tensorflow #keras #custom #activation #neuralnetwork #deeplearning #tutorial
def activate(x):
return abs(x)+1
activ_abs= keras.layers.Activation(activate)
model= keras.Sequential([
...
layers.Dense(1, activation=activ_abs)
])