简体   繁体   English

我是否应该继续训练我的 model 以获得更好的 R 平方值?

[英]Should I keep training my model for more Epochs to get a better R Squared value?

This is my model, using Adam optimiser and lr of 0.0001.这是我的 model,使用 Adam 优化器和 0.0001 的 lr。

在此处输入图像描述

This is the Training and the Validation loss plot below:这是下面的训练和验证损失 plot: 在此处输入图像描述

The value of mse=0.049 and r2=70.3%. mse=0.049,r2=70.3%。 My problem is the more images i include into my training model, the worse it gets but mse and r2 increases so this is very counterintuitive.我的问题是我在训练 model 中包含的图像越多,它变得越糟糕,但是 mse 和 r2 会增加,所以这是非常违反直觉的。 This is a regression model using Nvidia's Model.这是使用 Nvidia 的 Model 的回归 model。 I input the images and need a steering angle output.我输入图像并需要一个转向角 output。 Am i actually making things more difficuilt than it needs to be by increasing data and epochs?通过增加数据和时代,我是否真的让事情变得比需要的更困难? I am training with only 1600 Images for 30 epochs.我只用 1600 张图像训练 30 个 epoch。 Will appreciate any suggestion from the experts as im relatively new to NNs.Will provide more details if needed thanks:)将感谢专家的任何建议,因为我对 NN 来说相对较新。如果需要,将提供更多详细信息,谢谢:)

Observing the graph that shows the results of the training and validation loss we can see that after 12 epochs (more or less), the validation value does not improve too much as the epochs go up.观察显示训练和验证损失结果的图表,我们可以看到在12 epochs (或多或少)之后,验证值不会随着 epoch go 的增加而提高太多。 I think that the most logical thing would be to look for the value from which the validation/training loss does not have much improvement left.我认为最合乎逻辑的事情是寻找验证/训练损失没有太大改善的值。

Also remember that it is important not to overfit the model to the training data, as this can lead to errors when validating.还请记住,不要将 model 过度拟合到训练数据中,这很重要,因为这可能会在验证时导致错误。 I hope my answer will help you.希望我的回答对你有所帮助。 Good luck!祝你好运!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Keras:如果我在训练几个 epoch 后重新编译我的 model 会怎样 - Keras: What if i recompile my model after training few epochs 如果我们对于深度学习 model 的训练示例很少,使用更多的 epoch 会帮助 model 获得更好的精度吗? - What if we have very few training examples for a deep learning model, will employing more number of epochs help the model have better accuracy? R_squared 与 epochs - R_squared vs epochs yolov5:我可以在已经完成自定义训练的 model 上添加更多 epoch 吗? - yolov5 : Can i add more epochs on the model already done custom training? 为什么当我使用更多的 epoch 来训练我的 CNN 时,我的测试准确率会下降 - Why my test accuracy falls when i use more epochs for training my CNN 即使我的训练数据集是整个数据集的 5%,LSTM model 也给了我 99% 的 R 平方 - LSTM model is giving me 99% R-squared even if my training data set is 5% of the overall set 在使用多个时期进行训练时如何检查我的模型是否过拟合 - How to check if my model is overfitting or not when training with many epochs 为什么更多的时期会使我的模型变得更糟? - Why does more epochs make my model worse? 训练集的 R 平方比测试集的 R 平方大得多。 这对回归 model 意味着什么? - R-squared for training set is way larger then the R-squared for testing set. What can that mean for the regression model? 在 tensorflow 中训练模型时的 Epochs 问题 - Epochs problem when training model in tensorflow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM