Skip to content

Commit

Permalink
removed redundant ruleset method
Browse files Browse the repository at this point in the history
  • Loading branch information
keyan3 committed Dec 8, 2020
1 parent 098a129 commit 3248dc4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions imodels/rule_set/rule_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3248dc4

Please sign in to comment.