You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
if self.verbose:
logger.info("Binning process started.")
logger.info("Options: check parameters.")
_check_parameters(**self.get_params())
# check X dtype
if not isinstance(X, (pd.DataFrame, np.ndarray)):
raise TypeError("X must be a pandas.DataFrame or numpy.ndarray.")
# check target dtype
self._target_dtype = type_of_target(y)
The text was updated successfully, but these errors were encountered:
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()
The text was updated successfully, but these errors were encountered: