From 3ed858a746202eaf5679532bbe2c2495ec266908 Mon Sep 17 00:00:00 2001 From: bskrlj Date: Mon, 25 Mar 2024 21:48:55 +0100 Subject: [PATCH] removal --- outrank/core_ranking.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/outrank/core_ranking.py b/outrank/core_ranking.py index 667b0be..4e76b6b 100644 --- a/outrank/core_ranking.py +++ b/outrank/core_ranking.py @@ -240,37 +240,6 @@ def compute_combined_feature( return combined_feature, ftr_name -# def compute_combined_feature(input_dataframe: pd.DataFrame, -# new_combination: Tuple[str], -# join_string: str) -> Tuple[List[str], str]: - -# str_columns = {feature: input_dataframe[feature].astype(str) for feature in new_combination} - -# combined_series = pd.Series(['0'] * input_dataframe.shape[0], dtype=str) - -# for feature in new_combination: -# combined_series = combined_series.astype(str) + str_columns[feature] -# combined_series = combined_series.apply(internal_hash) - -# combined_feature = combined_series.tolist() - -# ftr_name = join_string.join(new_combination) - -# return combined_feature, ftr_name - -# def compute_combined_feature(input_dataframe: pd.DataFrame, new_combination: Tuple[str], join_string: str) -> Tuple[list[str], str]: -# combined_feature: list[str] = [str(0)] * input_dataframe.shape[0] -# for feature in new_combination: -# tmp_feature = input_dataframe[feature].tolist() -# for enx, el in enumerate(tmp_feature): -# combined_feature[enx] = str( -# internal_hash( -# str(combined_feature[enx]) + str(el), -# ), -# ) -# ftr_name = join_string.join(str(x) for x in new_combination) -# return combined_feature, ftr_name - def compute_expanded_multivalue_features( input_dataframe: pd.DataFrame, logger: Any, args: Any, pbar: Any,