nearest neighbors predict pipeline

Hi All,

I am trying to build pipeline for nearestneighbors from scikit learn. As there is no “predict” method in this, i need to write a custom predictor class.

can any1 help me on how to call this predict class on model is deployed on endpoint?