Skip to content

Instantly share code, notes, and snippets.

@AlexDel
Last active August 29, 2015 14:22
Show Gist options
  • Save AlexDel/bcbd08f47da2fe28c588 to your computer and use it in GitHub Desktop.
Save AlexDel/bcbd08f47da2fe28c588 to your computer and use it in GitHub Desktop.
dataset = [
(vector1, True),
(vector2, False),
(vector3, False),
]
train_data = [i[0] for i in dataset]
train_labels = [i[1] for i in dataset]
classifier.fit(train_data, train_labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment