摘要: 问题 训练某个数据集时发现,Loss会在摸某一个Epoch之后再次出现一个断崖式下降,而不是正常的圆滑下降。 如图: 解决 在模型设计上加入残差模块解决。 阅读全文
posted @ 2023-10-08 20:47 ykxhs 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 随机问题 numpy等随机数 使用numpy等随机数时,一定要注意随机函数会首到上次随机结果的影响。e.g. # 如果代码如下: import numpy as np np.random.seed(20) # 为numpy设置随机种子 for i in range(10): x = np.rando 阅读全文
posted @ 2023-10-06 23:08 ykxhs 阅读(107) 评论(0) 推荐(0) 编辑