Skip to content

Instantly share code, notes, and snippets.

@eisenjulian
Last active March 4, 2018 23:37
Show Gist options
  • Save eisenjulian/2cb0bf3374fc6fb86ee368710f15c84d to your computer and use it in GitHub Desktop.
Save eisenjulian/2cb0bf3374fc6fb86ee368710f15c84d to your computer and use it in GitHub Desktop.
column = tf.feature_column.categorical_column_with_identity('x', vocab_size)
classifier = tf.estimator.LinearClassifier(
feature_columns=[column],
model_dir=os.path.join(model_dir, 'bow_sparse'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment