`class_prior` should be on `__init__`, not here.

(My mistake that this is still on `fit` in master, will deprecate ASAP.)