Skip to content

Commit

Permalink
Fix: Resolve #32.
Browse files Browse the repository at this point in the history
  • Loading branch information
akashsara committed Mar 6, 2023
1 parent 1465eed commit c518857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multimodal_transformers/data/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def change_name_func(x):
def _one_hot(self):
ohe = preprocessing.OneHotEncoder(sparse=False)
ohe.fit(self.df[self.cat_feats].values)
self.feat_names = list(ohe.get_feature_names(self.cat_feats))
self.feat_names = list(ohe.get_feature_names_out(self.cat_feats))
return ohe.transform(self.df[self.cat_feats].values)

def fit_transform(self):
Expand Down

0 comments on commit c518857

Please sign in to comment.