Parameters should rather be checked at the beginning of `fit`.