简体   繁体   English

如果我们对于深度学习 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?

Considering, i have 5 training example under the label 'dog' and 5 under the label 'cat'.考虑到,我在 label 'dog' 下有 5 个训练示例,在 label 'cat' 下有 5 个训练示例。 Will more number of epochs help me train a Deep Learning Model with a good accuracy?更多的 epoch 是否会帮助我以良好的准确度训练深度学习 Model?

I would advise you to look into the topic of overfitting/underfitting.我建议您研究过拟合/欠拟合的主题。

Generally, if you train for more epochs, you will at a certain point start overfitting.一般来说,如果你训练更多的 epoch,你会在某个点开始过度拟合。 So more epochs will lead to a better performance on the training set, but a worse performance on any other set (generalization error).因此,更多的 epoch 将导致在训练集上的表现更好,但在任何其他集上的表现更差(泛化错误)。 This is why most deep-learning models use a validation set for early stopping:这就是为什么大多数深度学习模型使用验证集进行提前停止的原因:

A general idea is: fit to training set for one epoch check if validation set got predicted worse (if yes, reduce patience) if patience is 0 stop and use last mode, where validation got better一个一般的想法是:适合一个时期的训练集 检查验证集是否预测得更糟(如果是,减少耐心)如果耐心为 0 停止并使用最后一个模式,验证变得更好

If you have very little data, you should probably use leave-n-out cross-validation instead of simple train/valid/test split.如果您的数据很少,您可能应该使用 leave-n-out 交叉验证而不是简单的训练/有效/测试拆分。

Short answer: More epochs will help you perform better on the training data, but might (will) lead to worse performance on any new data.简短的回答:更多的 epoch 将帮助您在训练数据上表现更好,但可能(将)导致在任何新数据上的表现更差。

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

相关问题 Keras:如果我在训练几个 epoch 后重新编译我的 model 会怎样 - Keras: What if i recompile my model after training few epochs 哪种精度称为深度学习模型的精度? - Which accuracy is called the accuracy of a deep learning model? 深度学习模型的验证精度停留在 0.5,而训练精度正在提高 - Validation accuracy of deep learning model is stuck at 0.5 whereas training accuracy is improving 深度学习中的准确度差异 - 时期和最终准确度 - Accuracy Difference in Deep Learning - epochs and final accuracy 我是否应该继续训练我的 model 以获得更好的 R 平方值? - Should I keep training my model for more Epochs to get a better R Squared value? Tensorflow 深度学习 model 对 10 个类别产生的准确率较低,而在 3 个类别中表现非常好 - Tensorflow deep learning model produces less accuracy for 10 classes, whereas performs very good as set of 3 classes 创建用于训练深度学习 model 的 docker 图像 - Creating a docker image for training a deep learning model 训练深度学习 model 时出错 - Error while training a deep learning model Pytorch 深度学习 - 类模型()和训练函数 - Pytorch Deep Learning - Class Model() and training function 在 pytorch 中加速训练深度学习 model - Speed up training deep learning model in pytorch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM