Skip to content

Commit

Permalink
update mixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSefara committed May 29, 2020
1 parent 42a5354 commit 01e11ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textaugment/mixup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def mixup_data(self, x, y=None, alpha=0.2):
return np.concatenate(output_x, axis=0)
mixed_y = (y.T * lam_vector).T + (y[index].T * (1.0 - lam_vector)).T
output_y.append(mixed_y)
return np.concatenate(output_x, axis=0), np.concatenate(output_y, axis=0)
return np.concatenate(output_x, axis=0), np.concatenate(output_y, axis=0)

def flow(self, data, labels=None, batch_size=32, shuffle=True, runs=1):
"""This function implements the batch iterator and specifically calls mixup
Expand Down

0 comments on commit 01e11ca

Please sign in to comment.