Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
MIN Better str representation
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Aug 15, 2013
1 parent 5db4c6f commit f3e9348
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions milk/supervised/svm.py
Expand Up @@ -154,6 +154,9 @@ def __call__(self, x1, x2):
d2 = d2.sum()
res = self.beta*np.exp(-d2/self.sigma)
return res
def __str__(self):
return 'rbf_kernel(%s, %s)' % (self.sigma, self.beta)
__repr__ = __str__

def preprocess(self, X):
return preprocessed_rbf_kernel(X, self.sigma, self.beta)
Expand Down

0 comments on commit f3e9348

Please sign in to comment.