Machine Learning by Syndrome