Skip to content

Instantly share code, notes, and snippets.

@hadifar
Created November 12, 2018 21:01
Show Gist options
  • Save hadifar/573e034d0616480768a9cb47be71939c to your computer and use it in GitHub Desktop.
Save hadifar/573e034d0616480768a9cb47be71939c to your computer and use it in GitHub Desktop.
csv_dataset = csv_dataset.map(lambda x, y: (x, tf.one_hot(y, 2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment