def _more_tags(self): tags_dict = _return_tags() # the below test will fail because sklearn requires to check for inf, but # you can't check inf of categorical data, numpy returns and error. # so we need to leave without this test tags_dict["_xfail_checks"]["check_estimators_nan_inf"] = "transformer allows NA" return tags_dict
def _more_tags(self): tags_dict = _return_tags() # add additional test that fails tags_dict["_xfail_checks"][ "check_parameters_default_constructible" ] = "transformer has 1 mandatory parameter" return tags_dict
def _more_tags(self): tags_dict = _return_tags() # add additional test that fails tags_dict["_xfail_checks"][ "check_estimators_nan_inf"] = "transformer allows NA" tags_dict["_xfail_checks"][ "check_parameters_default_constructible"] = "transformer has 1 mandatory parameter" tags_dict["_xfail_checks"][ "check_fit2d_1feature"] = "the transformer raises an error when removing the only column, ok to fail" return tags_dict
def _more_tags(self): tags_dict = _return_tags() # in the current format, the tests are performed using continuous np.arrays # this means that when we encode some of the values, the denominator is 0 # and this the transformer raises an error, and the test fails. # For this reason, most sklearn transformers will fail. And it has nothing to # do with the class not being compatible, it is just that the inputs passed # are not suitable tags_dict["_skip_test"] = True return tags_dict
def _more_tags(self): tags_dict = _return_tags() # add additional test that fails tags_dict["_xfail_checks"][ "check_parameters_default_constructible"] = "transformer has 1 mandatory parameter" tags_dict["_xfail_checks"][ "check_fit2d_1feature"] = "this transformer works with datasets that contain at least 2 variables. \ Otherwise, there is nothing to combine" return tags_dict
def _more_tags(self): tags_dict = _return_tags() # add additional test that fails tags_dict["_xfail_checks"][ "check_estimators_nan_inf"] = "transformer allows NA" tags_dict["_xfail_checks"][ "check_fit2d_1feature"] = "the transformer needs at least 2 columns to compare, ok to fail" tags_dict["_xfail_checks"][ "check_fit2d_1sample"] = "the transformer raises an error when dropping all columns, ok to fail" return tags_dict
def _more_tags(self): tags_dict = _return_tags() msg = "input shape of dataframes in fit and transform can differ" tags_dict["_xfail_checks"]["check_transformer_general"] = msg msg = ( "transformer takes categorical variables, and inf cannot be determined" "on these variables. Thus, check is not implemented") tags_dict["_xfail_checks"]["check_estimators_nan_inf"] = msg return tags_dict
def _more_tags(self): tags_dict = _return_tags() # ======= this tests fail because the transformers throw an error # when the values are 0. Nothing to do with the test itself but # mostly with the data created and used in the test msg = ( "transformers raise errors when data contains zeroes, thus this check fails" ) tags_dict["_xfail_checks"]["check_estimators_dtypes"] = msg tags_dict["_xfail_checks"]["check_estimators_fit_returns_self"] = msg tags_dict["_xfail_checks"]["check_pipeline_consistency"] = msg tags_dict["_xfail_checks"]["check_estimators_overwrite_params"] = msg tags_dict["_xfail_checks"]["check_estimators_pickle"] = msg tags_dict["_xfail_checks"]["check_transformer_general"] = msg return tags_dict
def _more_tags(self): tags_dict = _return_tags() # ======= this tests fail because the transformers throw an error # when the values are 0. Nothing to do with the test itself but # mostly with the data created and used in the test msg = ( "transformers raise errors when data contains zeroes, thus this check fails" ) tags_dict["_xfail_checks"]["check_estimators_dtypes"] = msg tags_dict["_xfail_checks"]["check_estimators_fit_returns_self"] = msg tags_dict["_xfail_checks"]["check_pipeline_consistency"] = msg tags_dict["_xfail_checks"]["check_estimators_overwrite_params"] = msg tags_dict["_xfail_checks"]["check_estimators_pickle"] = msg tags_dict["_xfail_checks"]["check_transformer_general"] = msg # boxcox fails this test as well msg = "scipy.stats.boxcox does not like the input data" tags_dict["_xfail_checks"]["check_methods_subset_invariance"] = msg tags_dict["_xfail_checks"]["check_fit2d_1sample"] = msg return tags_dict
def _more_tags(self): tags_dict = _return_tags() # add additional test that fails tags_dict["_xfail_checks"][ "check_estimators_nan_inf"] = "transformer allows NA" return tags_dict
def _more_tags(self): return _return_tags()