Skip to content

Instantly share code, notes, and snippets.

View grudloff's full-sized avatar

Gabriel Rudloff grudloff

View GitHub Profile
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()