简体   繁体   English

我应该实时更新我的训练数据吗?

[英]Shall I update my training data in real-time?

I tried image classification using trained model and its working well but some images could not find perfectly in that time have to get that image and label from users so my doubt is..Is it possible to add new data into already trained model?我尝试使用经过训练的 model 进行图像分类,并且它运行良好,但是当时无法完美找到一些图像必须从用户那里获取该图像和 label 所以我的疑问是......是否可以将新数据添加到已经训练的 Z20F35E630DAF494DBFAC4C3F68 中?

No, during inference time you use the weights of the trained model for predictions.不,在推理期间,您使用经过训练的 model 的权重进行预测。 Which basically means that at the time your model is deployed the capabilities of your image classifier are fixed by the weights.这基本上意味着在部署 model 时,图像分类器的功能由权重固定。 If you wish to improve your model, you would have to retrain your model with the new - data.如果你想改进你的 model,你必须用新的数据重新训练你的 model。 However, there is another paradigm of learning called "Online Learning" where the model is continuously learning and modifying the weights.但是,还有另一种称为“在线学习”的学习范式,其中 model 不断学习和修改权重。 In this case your weights are not fixed and your model is continuously updating its weights with each training input.在这种情况下,您的权重不是固定的,您的 model 会随着每个训练输入不断更新其权重。 However afaik this is not usually recommended for CNNs, because the backward pass of gradients is computationally intensive and your inference will be slow because of this.但是,对于 CNN,通常不建议这样做,因为梯度的反向传递是计算密集型的,因此您的推理会很慢。

No model can predict with 100% accuracy if it does it's an ideal model.没有 model 可以以 100% 的准确度预测它是否是理想的 model。 And if you want to add more data to your train model you have to retrain the model with the new data.如果您想向您的火车 model 添加更多数据,您必须使用新数据重新训练 model。 Having more data is always a good idea.拥有更多数据总是一个好主意。 It allows the “data to tell for itself,” instead of relying on assumptions and weak correlations.它允许“数据自己说话”,而不是依赖假设和弱相关性。 Presence of more data results in better and accurate models.更多数据的存在会产生更好、更准确的模型。 So if you want to get better accuracy you have to train your model with more data.因此,如果您想获得更好的准确性,您必须使用更多数据训练您的 model。 Without retraining, you can't add data to your trained model.如果不进行重新训练,则无法将数据添加到经过训练的 model。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM