Suppressing flow separation over a flat plate using machine learning