Energy And Area Efficient Machine Learning Architectures Using Spin-Based Neurons