Foundations of machie learning HW3