modify RAdam

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

View File

@ -144,7 +144,7 @@ class FastTextGraph(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)],