Skip to content

Instantly share code, notes, and snippets.

@chaserileyroberts
Last active February 1, 2018 15:50
Show Gist options
  • Save chaserileyroberts/30b90ff725e415164aaaa2267bd71f2b to your computer and use it in GitHub Desktop.
Save chaserileyroberts/30b90ff725e415164aaaa2267bd71f2b to your computer and use it in GitHub Desktop.
import mltest
def test_my_model():
# Make placeholders for input into the model
input_image = tf.placeholder(...)
label = tf.placeholder(...)
# Build your model
model = Model(input_image, label)
# Run the test suite!
mltest.test_suite(
model.logits,
model.train_op,
feed_dict={
input_image: np.random.randn(...)
label: np.random.randint(...)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment