Created
November 27, 2018 11:22
-
-
Save ispamm/efc473172a3267bd133d284a33d87224 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
# Load filenames and labels | |
filenames = tf.constant(train_data.iloc[:, 0].tolist()) | |
labels = tf.constant(train_data.iloc[:, 1:].values) | |
# Add to a dataset object | |
dataset = tf.data.Dataset.from_tensor_slices((filenames, labels)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment