You have to have linear algebra. Almost certainly should have a basic statistics course, preferably a real one where you learn some mathematical statistics, not just how to apply a few formulas to data. Past that, a proof based course--usually real analysis.