Last active
October 15, 2019 11:46
-
-
Save VictorSaenger/ff7fb724016d69678c6beb05be06fe30 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #All required modules in the permutation pipeline: | |
| import numpy as np | |
| from sklearn import datasets | |
| import scipy.stats as stats | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| import random | |
| import copy | |
| irisd = datasets.load_iris() | |
| #Load only the first two features in each species: | |
| #Setosa: | |
| feat_set = irisd.data[np.where(irisd.target[:]==0)[0],:2] | |
| #Versicolor: | |
| feat_ver = irisd.data[np.where(irisd.target[:]==1)[0],:2] | |
| #Virginica: | |
| feat_vir = irisd.data[np.where(irisd.target[:]==2)[0],:2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment