Skip to content

Commit

Permalink
Update feature_generators.py
Browse files Browse the repository at this point in the history
Update polynomial features call for latest sklearn
  • Loading branch information
rjacobs914 authored Apr 17, 2024
1 parent 736eb08 commit a85a61a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mastml/feature_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ def fit(self, X, y=None):
return self

def transform(self, X):
new_features = self.SPF.get_feature_names()
new_features = self.SPF.get_feature_names_out()
return pd.DataFrame(self.SPF.transform(self.featurize_df), columns=new_features), self.y

class OneHotGroupGenerator(BaseGenerator):
Expand Down

0 comments on commit a85a61a

Please sign in to comment.