Skip to content

Commit

Permalink
Remove label from feature importance suppression (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
reluzita authored Feb 29, 2024
1 parent b922a4e commit 270da37
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def fit(self, X: pd.DataFrame, y: pd.Series, s: Optional[pd.Series]) -> None:
n_estimators=self.n_estimators, random_state=self.seed, n_jobs=self.n_jobs
)

features = pd.concat([X, y], axis=1)
features = pd.get_dummies(features)
features = pd.get_dummies(X)
target = s.copy()

features_train, features_val, target_train, target_val = train_test_split(
Expand Down

0 comments on commit 270da37

Please sign in to comment.