Skip to content

Commit

Permalink
fix fatal bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
caradryanl committed May 17, 2024
1 parent 9f6a3b0 commit 9f82171
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions diffusers/scripts/train_gsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def preprocess(member, non_member):
x = np.vstack((member, non_member))
y = np.concatenate((member_y_np, nonmember_y_np))
x = preprocessing.scale(x)
x = np.nan_to_num(x, nan=0)
return x, y

def train_xgboost(member_features, nonmember_features):
Expand Down

0 comments on commit 9f82171

Please sign in to comment.