Skip to content

Instantly share code, notes, and snippets.

@mempirate
Created April 4, 2018 15:09
Show Gist options
  • Save mempirate/e725f3c0272de2d0d0b70637d81d1456 to your computer and use it in GitHub Desktop.
Save mempirate/e725f3c0272de2d0d0b70637d81d1456 to your computer and use it in GitHub Desktop.
# Creating the matrix of features and the vector of labels
X = df.iloc[:, :-1].values
y = df.iloc[:, 1].values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment