Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created July 15, 2018 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/a026ef9fdc5e44ef2cc4bf8018fe8963 to your computer and use it in GitHub Desktop.
Save NMZivkovic/a026ef9fdc5e44ef2cc4bf8018fe8963 to your computer and use it in GitHub Desktop.
import pandas as pd
from keras.utils import np_utils
data = pd.read_csv('data.csv', header = 0)
X = data.iloc[:, :-1]
y = data.iloc[:, -1]
y_categorical = np_utils.to_categorical(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment