Machine Learning Methods for Attack Detection in the Smart Grid