Last active
March 4, 2018 23:37
-
-
Save eisenjulian/2bdf30503b115ad0afcf0eff1f767634 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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