tensorflow - Overfitting DL model?
问题描述
I am trying to build a Deep Learning model to pick out Tropical Cyclones in weather model data. I have collected the data, normalized it in the region [0, 1] and passed it to my early model. Then I plotted my loss and accuracy curves as here. I am getting weird curves as the validation loss starts increasing after ~50 epochs, indicating overfitting, but the validation accuracy is still increasing. Is my model overfitting (at around 50 epochs) or not?
解决方案
These graphs are classical graphs that comes with overfitting! You can recognize overfit because even though training accuracy keeps increasing, validation accuracy does not. To prevent overfit, there are several approaches; too numerous to name in one answer. You could apply L1/L2 regularization, dropout, or artificially expand your training data (amongst others).
推荐阅读
- sql - 使用 SQL 查询从表中提取数据
- python - *= 数组和整数之间的乘数问题
- c++ - 循环中的向量 (CPP) 打印问题
- spring-boot - 如何修复枚举的休眠“findBy”输入?
- python - 在这个 while 循环条件下发生了什么?
- flutter - 提供者,将其分配给变量和直接使用它有什么区别?
- python - Beautifulsoup 的 Python 抓取问题
- ios - 如何在将其转换为 Double 之前检查字符串值是否为 nil
- reactjs - 为什么react useQuery() 在突变后不获取最新数据?
- mysql - Laravel 7.4 无法添加外键约束