Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2020 00:20
What would you like to do?
X_train, y_train = to.train.xs, to.train.ys.values.ravel()
X_validation, y_validation = to.valid.xs, to.valid.ys.values.ravel()
mask_positive_class = (y_validation == 1)
print(f"The train set has {np.bincount(y_train)[1]} positive labels.")
print(f"The validation set has {np.bincount(y_validation)[1]} positive labels.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment