From 3248dc40e2f853a1fc50c01658f978b40611c188 Mon Sep 17 00:00:00 2001 From: Keyan Nasseri Date: Tue, 8 Dec 2020 14:48:26 -0800 Subject: [PATCH] removed redundant ruleset method --- imodels/rule_set/rule_set.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/imodels/rule_set/rule_set.py b/imodels/rule_set/rule_set.py index 71ee1555..699a704f 100644 --- a/imodels/rule_set/rule_set.py +++ b/imodels/rule_set/rule_set.py @@ -7,18 +7,6 @@ class RuleSet: - @staticmethod - def _enum_features(X, feature_names: List[str]) -> Tuple[List[str], Dict[str, str]]: - enum_feature_names = [f'feature_{i}' for i in range(X.shape[1])] - if feature_names is None: - feature_names = enum_feature_names - else: - feature_clean_fn = lambda f: f.replace(' ', '_').replace('/', '_').replace('<', '_under_') - feature_names = list(map(feature_clean_fn, feature_names)) - feature_dict = {k: v for k, v in zip(enum_feature_names, feature_names)} - - return feature_names, feature_dict - def _get_tree_ensemble(self): pass