Skip to content

Instantly share code, notes, and snippets.

@oem
Created July 4, 2018 11:25
Show Gist options
  • Save oem/9ea3aa3d8e1f929442ed5ffcd18379fc to your computer and use it in GitHub Desktop.
Save oem/9ea3aa3d8e1f929442ed5ffcd18379fc to your computer and use it in GitHub Desktop.
sanity checking our trained beer classifier
import turicreate as tc
import os
current_dir = os.path.dirname(__file__)
model = tc.load_model(os.path.join(
current_dir, 'model/v1.model'))
images = tc.load_images(os.path.join(current_dir, 'data/test'))
images['predictions'] = model.predict(images)
images.print_rows(num_rows=10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment