Learning potential