Table Of Contents

Previous topic

mappers.ica

Next topic

mappers.mask

This content refers to the previous stable release of PyMVPA. Please visit www.pymvpa.org for the most recent version of PyMVPA and its documentation.

mappers.lle

Module: mappers.lle

Inheritance diagram for mvpa.mappers.lle:

Local Linear Embedding Data mapper.

This is a wrapper class around the corresponding MDP nodes LLE and HLLE (since MDP 2.4).

LLEMapper

class mvpa.mappers.lle.LLEMapper(k, algorithm='lle', **kwargs)

Bases: mvpa.mappers.base.Mapper

Locally linear embbeding Mapper.

This mapper performs dimensionality reduction. It wraps two algorithms provided by the Modular Data Processing (MDP) framework.

Locally linear embedding (LLE) approximates the input data with a low-dimensional surface and reduces its dimensionality by learning a mapping to the surface.

This wrapper class provides access to two different LLE algorithms (i.e. the corresponding MDP processing nodes). 1) An algorithm outlined in An Introduction to Locally Linear Embedding by L. Saul and S. Roweis, using improvements suggested in Locally Linear Embedding for Classification by D. deRidder and R.P.W. Duin (aka LLENode) and 2) Hessian Locally Linear Embedding analysis based on algorithm outlined in Hessian Eigenmaps: new locally linear embedding techniques for high-dimensional data by C. Grimes and D. Donoho, 2003.

Note

This mapper only provides forward-mapping functionality – no reverse mapping is available.

Parameters:
  • k (int) – Number of nearest neighbor to be used by the algorithm.
  • algorithm (‘lle’ | ‘hlle’) – Either use the standard LLE algorithm or Hessian Linear Local Embedding (HLLE).
  • **kwargs – Additional arguments are passed to the underlying MDP node. Most importantly this is the output_dim argument, that determines the number of dimensions to mapper is using as output space.
forward(data)

Map data from the IN dataspace into OUT space.

getInSize()

Returns the size of the entity in input space

getOutSize()

Returns the size of the entity in output space

node

Provide access to the underlying MDP processing node.

With some care.

reverse(data)

Reverse map data from OUT space into the IN space.

train(ds)

Train the mapper.