Hello,
hello ,
I need a matlab code for using custom function(distance function) for distance parameter with ficknn or classificationknn.
In fact i want to define the distance below D(sq,si)=1/(1+exp(wi))*eucludien(xq,xi)
where
sq:the query instance
wi is a weight of instance i
matlab syntax for knn:model=fitcknn(instance_train,label_train,'Distance',distance function,....)
Thank you in advance