Skip to content
/ fps Public
forked from vqv/fps

An R package for sparse PCA via Fantope Projection and Selection

Notifications You must be signed in to change notification settings

yixuan/fps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fantope Projection & Selection

fps is an R package that provides an implementation of an ADMM algorithm for computing the Fantope projection and selection estimator. Most of the package is written in C++ using Rcpp and the Armadillo C++ library. The estimator is based on a convex relaxation of the sparse PCA problem based on the convex hull projection matrices (the Fantope). This circumvents orthogonality and deflation issues that plague previous approaches to sparse PCA. A preliminary report describing this estimator and some of its near-optimal statistical properties estimator can found in the NIPS conference proceedings. A longer report with more details and new results is forthcoming and will be posted to arXiv.

Installation

Use devtools to install directly from GitHub:

library(devtools)
install_github("fps", "vqv")

Example Usage

library(fps)
data(wine)
out <- fps(cor(wine), ndim = 2)
plot(out)

# Extract basis coefficients for a particular solution
v <- coef(out, lambda = 0.5) 
print(v)

or

library(fps)
example(fps)

Issues

  1. This package is currently under development and has not been thoroughly tested.
  2. The documentation is under development and minimal.
  3. The author has only built the package on Mac OS X 10.9.

About

An R package for sparse PCA via Fantope Projection and Selection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 64.3%
  • R 34.0%
  • C 1.7%