Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created February 10, 2018 14:35
Show Gist options
  • Select an option

  • Save NMZivkovic/624ea443bf82d1982c7c5bfa1193f8bb to your computer and use it in GitHub Desktop.

Select an option

Save NMZivkovic/624ea443bf82d1982c7c5bfa1193f8bb to your computer and use it in GitHub Desktop.
# Import training dataset
training_dataset = pd.read_csv('iris_training.csv', names=COLUMN_NAMES, header=0)
train_x = training_dataset.iloc[:, 0:4].values
train_y = training_dataset.iloc[:, 4].values
# Import testing dataset
test_dataset = pd.read_csv('iris_test.csv', names=COLUMN_NAMES, header=0)
test_x = test_dataset.iloc[:, 0:4].values
test_y = test_dataset.iloc[:, 4].values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment