Implementation of Data-dependent kernel for sklearn SVM