Unstable output values from ANN and improving accuracy

久未见 提交于 2019-12-11 08:10:45

问题


I am trying to develop an Artificial Neural Network using PyBrain to model biological data. My ANN compiles and runs, but its accuracy value is very low, never surpassing ~62%. From a coding perspective, how can I improve the ANN's accuracy? Something I noticed was that each time, the outputs of the ANN are not the same, either, even though the test data set doesn't change--is there a reason the ANN is acting to unstably, and how can I improve this?

Thank you! :)


回答1:


If you creating new network each time you run your script then it is normal that outputs are different.

Each time you create ANN pybrain initialize weights of connections with random values (range 0 to 1).

You can save your ANN with NetworkWriter and read it with NetworkReader in pybrain.tools.customxml (see code documentation for reference, pybrain API is missing few things).

You can adjust training process with learning rate and momentum. Also you could apply more training epoch to your network.

If you provide your code I could say more.



来源:https://stackoverflow.com/questions/25252928/unstable-output-values-from-ann-and-improving-accuracy

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