Skip to content

Instantly share code, notes, and snippets.

@hadifar
Created January 4, 2019 17:05
Show Gist options
  • Save hadifar/8734a6211856853bc16645bc24c65bed to your computer and use it in GitHub Desktop.
Save hadifar/8734a6211856853bc16645bc24c65bed to your computer and use it in GitHub Desktop.
# Build 2 hidden layer DNN with 10, 10 units respectively.
classifier = tf.estimator.DNNClassifier(
feature_columns=my_feature_columns,
# Two hidden layers of 10 nodes each.
hidden_units=[10, 10],
# The model must choose between 3 classes.
n_classes=3,
# The directory which model to be saved
model_dir='./tmp'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment