Skip to content

Instantly share code, notes, and snippets.

@eisenjulian
Last active March 4, 2018 23:37
Show Gist options
  • Save eisenjulian/2bdf30503b115ad0afcf0eff1f767634 to your computer and use it in GitHub Desktop.
Save eisenjulian/2bdf30503b115ad0afcf0eff1f767634 to your computer and use it in GitHub Desktop.
embedding_size = 50
word_embedding_column = tf.feature_column.embedding_column(
column, dimension=embedding_size)
classifier = tf.estimator.DNNClassifier(
hidden_units=[100],
feature_columns=[word_embedding_column],
model_dir=os.path.join(model_dir, 'bow_embeddings'))
train_and_evaluate(classifier)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment