Open chunqishi opened 9 months ago
Hi @chunqishi.
Your are not the first one encountering this issue with https://scikit-learn.org/stable/modules/generated/sklearn.utils.multiclass.type_of_target.html. I will think about it.
I think it makes sense to implement this parameter in the Binning Process.
for a continuous case, sometime target are just float values without the part after the decimal point, however, type_of_target treat [1.0, 2.0, 3.0, 4.0, 5.0] as multiclass.
could you provide a setting interface to assign self._target_dtype ? or fix type_of_target into continuous when target are float type and the number of unique values larger than 10.
def _fit(self, X, y, sample_weight, check_input): time_init = time.perf_counter()