Effective methods and framework for energy-based local learning of deep neural networks | Synapse