Skip to content

Commit

Permalink
preprocesssing
Browse files Browse the repository at this point in the history
  • Loading branch information
PotosnakW committed Apr 21, 2022
1 parent c6b6a72 commit 548501b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions auton_survival/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,9 @@ def fit_transform(self, data, cat_feats, num_feats,
output = pd.get_dummies(output, dummy_na=False, drop_first=True)

return output

def _dataframe_to_array(data):
if isinstance(data, (pd.Series, pd.DataFrame)):
return data.to_numpy()
else:
return data

0 comments on commit 548501b

Please sign in to comment.