Interface to provide mapping between two spaces: IN and OUT.
Methods are prefixed correspondingly. forward/reverse operate
on the entire dataset. get(In|Out)Id[s] operate per element:
|
__init__(self,
metric=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
forward(self,
data)
Map data from the IN dataspace into OUT space. |
source code
|
|
|
reverse(self,
data)
Reverse map data from OUT space into the IN space. |
source code
|
|
|
getInSize(self)
Returns the size of the entity in input space |
source code
|
|
|
getOutSize(self)
Returns the size of the entity in output space |
source code
|
|
|
|
|
getInId(self,
outId)
Translate a feature id into a coordinate/index in input space. |
source code
|
|
|
|
|
|
|
|
|
getNeighbor(self,
outId,
*args,
**kwargs)
Get feature neighbors in input space, given an id in output space. |
source code
|
|
|
|
|
|
|
|
|
__call__(self,
data)
Calls the mappers forward() method. |
source code
|
|
|
|
|
setMetric(self,
metric)
To make pylint happy |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|