Last active
July 17, 2021 20:53
-
-
Save zabop/28c2cf3a9764d177ced30460ab6549e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dimension=10000 | |
mlb = MultiLabelBinarizer(classes=range(dimension)) | |
x_train = mlb.fit_transform(train_data) | |
x_test = mlb.fit_transform(test_data) | |
y_train = np.asarray(train_labels).astype('float32') | |
y_test = np.asarray(test_labels).astype('float32') | |
x_val = x_train[:10000] | |
partial_x_train = x_train[10000:] | |
y_val = y_train[:10000] | |
partial_y_train = y_train[10000:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment