modify RAdam

modify RAdam
This commit is contained in:
Macropodus 2022-04-01 21:44:26 +08:00 committed by GitHub
parent 6fd54d32fd
commit dacf9bc583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ class TextCNNGraph(graph):
构建优化器损失函数和评价函数
:return:
"""
from keras_textclassification.keras_layers.keras_radam import RAdam
# from keras_textclassification.keras_layers.keras_radam import RAdam
from keras.optimizers import Adam
# self.model.compile(optimizer=Adam(lr=self.lr, beta_1=0.9, beta_2=0.999, decay=0.0),
# loss=[self.focal_loss(alpha=.25, gamma=2)],