fit_number_of_samples