This file contains 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
import numpy as np | |
from scipy.spatial import distance | |
from sklearn.model_selection import train_test_split | |
from sklearn.neighbors import KNeighborsClassifier | |
from sklearn.model_selection import GridSearchCV | |
from sklearn.metrics import classification_report | |
#toy dataset | |
X = np.random.random((100,10)) | |
y = np.random.randint(0,2, (100)) |