Generic function for fitting a learner.
fit(obj, ...)
obj
The object controlling which method is used
...
Arguments depending on the specific method used