I\'m trying to define a customized weight callable function that will assign a greater weight to the y values for the sklearn KNeighborsClassifier. The mathematical formula