Persistent Function based machine learning