Machine Learning Potential Function