Linear mapping between multidimensional spaces.
Once the projection matrix is available, this class provides
functionality to perform forward and backwards linear mapping of
data, the latter by default using pseudo-inverse (but could be
altered in subclasses, like hermitian (conjugate) transpose in
case of SVD). Additionally, ProjectionMapper supports optional
selection of arbitrary component (i.e. columns of the projection
matrix) of the projection.
|
|
|
train(self,
dataset,
*args,
**kwargs)
Determine the projection matrix. |
source code
|
|
|
_demeanData(self,
data)
Helper which optionally demeans |
source code
|
|
|
_train(self,
dataset)
Worker method. Needs to be implemented by subclass. |
source code
|
|
|
|
|
reverse(self,
data)
Reproject (reconstruct) data into the original feature space. |
source code
|
|
|
_computeRecon(self)
Given that a projection is present -- compute reconstruction matrix.
By default -- pseudoinverse of projection matrix. Might be overridden
in derived classes for efficiency. |
source code
|
|
|
_getRecon(self)
Compute (if necessary) and return reconstruction matrix |
source code
|
|
|
|
|
|
|
|
Inherited from Mapper :
__call__ ,
__repr__ ,
getInId ,
getMetric ,
getNeighbor ,
getNeighborIn ,
getNeighbors ,
isValidInId ,
isValidOutId ,
setMetric
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|