Learning Concepts with Energy Functions