Share array intialization sparse and dense fit

The arrays n_outputs_, classes_, n_classes_, class_prior_