Mlearning

Mlearning Datasets, Iris-species

Iris dataset is included in scikit-learn 
Features: sepal and petals (length and width)

from sklearn.datasets import load_iris
dataset = load_iris()
K-nearest

Mlearning Algorithms, K-nearest-neighbors

1. Load training dataset
2. Define a value for k-nearest
3. Calculate distances to the unknown point
4. Compute the k-nearest points
5. Get the most common target class
6. Assign the new point to that class
K-nearest