Package mvpa :: Package clfs :: Module kernel :: Class KernelConstant
[hide private]
[frames] | no frames]

Class KernelConstant

source code


The constant kernel class.
Instance Methods [hide private]
 
__init__(self, coefficient=None, **kwargs)
Initialize the constant kernel instance.
source code
 
__repr__(self)
repr(x)
source code
 
compute(self, data1, data2=None)
Compute kernel matrix.
source code
 
set_hyperparameters(self, *coefficient) source code

Inherited from Kernel: euclidean_distance

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, coefficient=None, **kwargs)
(Constructor)

source code 
Initialize the constant kernel instance.
Parameters:
  • coefficient (numpy.ndarray) - the coefficients of the linear kernel (Defaults to None)
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

compute(self, data1, data2=None)

source code 
Compute kernel matrix.
Parameters:
  • data1 (numpy.ndarray) - data
  • data2 (numpy.ndarray) - data (Defaults to None)