Skip to content

Instantly share code, notes, and snippets.

@fabclmnt
Created May 6, 2020 14:29
Show Gist options
  • Save fabclmnt/09e3cd827f4d27023cb511b09be29e35 to your computer and use it in GitHub Desktop.
Save fabclmnt/09e3cd827f4d27023cb511b09be29e35 to your computer and use it in GitHub Desktop.
# Import TensorFlow and TensorFlow Datasets
import tensorflow_datasets as tfds
import tensorflow as tf
#Download the dataset and divide it into train and test
datasets, info = tfds.load('beans', with_info=True, as_supervised=True)
beans_train, beans_test = datasets['train'], datasets['test']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment