-
-
Save sararob/147927f1914a2bf0e828dbc4cc4c6179 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
# Format our data for the numpy_input_fn | |
features = { | |
"descriptions": np.array(train_descriptions) | |
} | |
labels = np.array(train_encoded) | |
train_input_fn = tf.estimator.inputs.numpy_input_fn( | |
features, | |
labels, | |
shuffle=True, | |
batch_size=32, | |
num_epochs=20 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment