Differents outputs from predictions using Tensorflow from same data?

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:57:44

问题


I am caught in a problem here when I try to take the predictions from my training model. The scenario is: I train a neural network model to learn and classify pictures using Tensorflow. When I train in Gcloud, it returns a different results that when I train locally. Even using the same OS, libraries and code, it returns differents outputs.

Some questions came on my mind:

The data I am talking about is the pictures I am using to train.

I) Considering that you are in the same machine, every train of same data will be different somehow?

II) The act of train in different machines with same data makes the predictions returns different outputs?

Thanks!


回答1:


Training neural networks is a stochastic process and you will get slightly different results each time you train. For example, the order in which you feed the data will affect the final learned weights. It depends on how you configure your model in TensorFlow but usually the input is shuffled so that each run processes the images in a different order.

Also is your model actually converging?



来源:https://stackoverflow.com/questions/44462765/differents-outputs-from-predictions-using-tensorflow-from-same-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!