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
import numpy as np | |
import scipy.io as sio | |
from metric_learn import SCML_global_Supervised | |
from sklearn.preprocessing import StandardScaler, normalize | |
from sklearn.neighbors import KNeighborsClassifier, NearestNeighbors | |
from scipy.stats import mode | |
def preprocess_data(xTr, xVa, xTe): | |
scaler = StandardScaler() |