Conventions are to make parameter checkings inside `fit`, and not in the constructor.