Code Monkey home page Code Monkey logo

funwithflags's Introduction

Fun with Flags: Robust Principal Directions via Flag Manifolds

Description

This is the code for Fun with Flags: Robust Principal Directions via Flag Manifolds. Watch a 5 minute teaser video for the project here..

Robust Principal Directions

Abstract

Principal component analysis (PCA), along with its extensions to manifolds and outlier contaminated data, have been indispensable in computer vision and machine learning. In this work, we present a unifying formalism for PCA and its variants, and introduce a framework based on the flags of linear subspaces, \ie a hierarchy of nested linear subspaces of increasing dimension, which not only allows for a common implementation but also yields novel variants, not explored previously. We begin by generalizing traditional PCA methods that either maximize variance or minimize reconstruction error. We expand these interpretations to develop a wide array of new dimensionality reduction algorithms by accounting for outliers and the data manifold. To devise a common computational approach, we recast robust and dual forms of PCA as optimization problems on flag manifolds. We then integrate tangent space approximations of principal geodesic analysis (tangent-PCA) into this flag-based framework, creating novel robust and dual geodesic PCA variations. The remarkable flexibility offered by the 'flagification' introduced here enables even more algorithmic variants identified by specific flag types. Last but not least, we propose an effective convergent solver for these flag-formulations employing the Stiefel manifold. Our empirical results on both real-world and synthetic scenarios, demonstrate the superiority of our novel algorithms, especially in terms of robustness to outliers on manifolds.

How to Cite

@misc{mankovich2024fun,
      title={Fun with Flags: Robust Principal Directions via Flag Manifolds}, 
      author={Nathan Mankovich and Gustau Camps-Valls and Tolga Birdal},
      year={2024},
      eprint={2401.04071},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Getting Started

Quick Start (Python)

  1. Install anaconda or miniconda

  2. Initialize conda environment

    conda env create -f fun-flags.yml
    conda activate fun-flags
    
  3. Visit GettingStarted.ipynb For an introduction to robust principal directions via flag manifolds

Organization

  • Euclidan - experiments working with Euclidean data
  • Faces- outlier detection with cropped YaleFaceDatabase B and Caltech101
  • Grassmannian- synthetic datasets on Gr(2,4)
  • Hands- hands dataset
  • RemoteSensing- outlier detection with merced landuse dataset
  • Sphere- synthetic datasets on Spheres
  • scripts- workhorse scripts for all the examples

Authors

Nathan Mankovich, Gustau Camps-Valls, and Tolga Birdal: email

funwithflags's People

Contributors

nmank avatar

Watchers

Tolga Birdal avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.