Theano based kernel SVM