PyML :: containers :: ker :: Gaussian :: Class Gaussian
[frames] | no frames]

Class Gaussian

source code

                 object --+    
                          |    
                     Kernel --+
                              |
ext.ckernel._object --+       |
                      |       |
     ext.ckernel.Kernel --+   |
                          |   |
       ext.ckernel.Gaussian --+
                              |
                             Gaussian

A Gaussian (RBF) kernel K(x,y) = exp( - gamma * ||x - y||**2

Construction: k = Gaussian(gamma)

Attributes: gamma - kernel width parameter

Instance Methods
 
__init__(self, arg=1.0, **args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code
 
constructionParams(self) source code
 
eval(self, datai, i, j, dataj=None)
evaluate the kernel function between patterns i and j of dataset datai; if dataj is given then pattern j is assumed to come from dataset dataj
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

    Inherited from Kernel
 
dump(self)
returns a string that can be used to construct an equivalent object
source code
    Inherited from ext.ckernel.Gaussian
 
castToBase(*args) source code
 
duplicate(*args) source code
 
setGamma(*args) source code
    Inherited from ext.ckernel.Kernel
 
normalize(*args) source code
Class Variables
  attributes = {'normalization': NONE, 'gamma': 1.0,}
    Inherited from Kernel
  type = 'kernel'
    Inherited from ext.ckernel.Gaussian
  __del__ = lambda self:
  __getattr__ = lambda self, name:
  __swig_destroy__ = _ckernel.delete_Gaussian
  __swig_getmethods__ = {}
  __swig_setmethods__ = {}
Properties

Inherited from object: __class__

Method Details

__init__(self, arg=1.0, **args)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: ext.ckernel.Kernel.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: ext.ckernel._swig_repr

constructionParams(self)

source code 
Overrides: Kernel.constructionParams

eval(self, datai, i, j, dataj=None)

source code 
evaluate the kernel function between patterns i and j of dataset datai; if dataj is given then pattern j is assumed to come from dataset dataj
Overrides: ext.ckernel.Kernel.eval