Coder Social home page Coder Social logo

agiant / robust-pca Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamesthompson/robust-pca

0.0 1.0 0.0 10 KB

Robust Principal Component Analysis in Haskell using HMatrix

License: BSD 3-Clause "New" or "Revised" License

Nix 51.55% Haskell 48.45%

robust-pca's Introduction

Robust PCA

Robust principal component analysis library for periodic data (e.g. time-series) anomaly detection in GHC/Haskell.

It is a fairly faithful port of Netflix/Surus based on the work in the robust PCA paper by Wright et al.

In short, the library is aimed toward optimization of the problem M = L + S, where M is the matrix of (idealized) input data, L is a low-rank matrix approximating the input data and S is a sparse matrix of "outliers". The procedure also outputs the difference between the input data and tolerated delta (error), should that be required.

This approach assumes that the data is periodic, as such this is provided as an optimization input parameter along with tolerances. More detail is given in the module itself.

Building

This library is built with nix. It depends upon hmatrix for linear algebra functionality and is currently only working in x86-64 Linux environments due to difficulties with OpenBlas linking on OS X.

To enter the nix-shell:

$ nix-shell -A robust-pca.env nix/release.nix

If cabal is in scope, cabal repl should bring you into GHCi for experimentation.

robust-pca's People

Watchers

James Cloos 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.