Skip to content
forked from jakevdp/lpproj

Locality Preserving Projections in Python

License

Notifications You must be signed in to change notification settings

drzohaibh/lpproj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locality Preserving Projections in Python

This is a Python implementation of Locality Preserving Projections (LPP), compatible with scikit-learn.

version status downloads build status license

Installation and Use

This package is pure Python, and depends only on numpy, scipy, and scikit-learn. The released version can be installed via pip:

$ pip install lpproj

A basic example of its use can be found in Example.ipynb; the library follows scikit-learn's patterns for fit(), transform(), and fit_transform(). The simplest example for a feature matrix X:

from lpproj import LocalityPreservingProjection 
lpp = LocalityPreservingProjection(n_components=2)

X_2D = lpp.fit_transform(X)

More Information

For information on the LPP algorithm, see the paper, Locality Preserving Projections (pdf).

About

Locality Preserving Projections in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 96.6%
  • Python 3.4%