Coder Social home page Coder Social logo

pccaplus.jl's Introduction

PCCAPlus

Stable Dev Build Status Coverage

A KISS style implementation of PCCA+ (Robust Perron Cluster Analysis) [1,2] with support for non-reversible systems [3]. For a similar python implementation see also the cmdtools package.

Basic usage

using PCCAPlus

P=rand(10,10)
P = P ./ sum(P, dims=2) # row stochastic matrix

# basic PCCA+ clustering with 2 clusters (using no weighting and the ISA initial guess only)
chi = pcca(P, 2)

using KrylovKit
using SparseArrays
P = sprand(100,100, 0.1)
P = P ./ sum(P, dims=2) # sparse row stochastic matrix

# solve the PCCA+ problem weighted with the stationary density 
# and optimize for crispness, using the KrylovKit.jl eigensolver
chi = pcca(P, 2; pi=:stationary, optimize=true, solver=KrylovSolver())

For sparse matrix support, add either the ArnoldiMethod.jl or KrylovKit.jl and pass the corresponding ArnoldiSolver() or KrylovSolver() as a solver.

References

  1. 2006, M. Weber: Meshless Methods in Conformation Dynamics
  2. 2013, S. Röblitz, M. Weber: Fuzzy Spectral Clustering by PCCA+
  3. 2018, K. Fackeldey, A. Sikorski, M. Weber: Spectral Clustering for Non-Reversible Markov Chains

pccaplus.jl's People

Contributors

axsk avatar

Watchers

 avatar  avatar

pccaplus.jl's Issues

Write proper tests

The current tests look quite ugly.

  • Test the different solver types
  • Test dense and sparse matrices
  • Test P and Q
  • Test for consistency between the above
  • Test for the PCCA+ guarantees (positivity, partition of unity, subspace)

also return the transformation A

pcca should also return the transformation A (and the eigenvectors? eigenvalues?)
For this makeprobabilistic needs to return A.

I think the latter should be renamed to basistransform and return only A.

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Sparse Matrices are not well supported

I had to fix the method signatures, and I am not sure if all Sparse Eigensolver modules are really working.
Also one of the bigger ones (IterativeSolvers?) is missing.

Check the state of these

Find a good package name

  • PCCA does not adhere to the Julia rules
  • DynamicClustering
  • MarkovClustering
  • ProbabilisticSpectralClustering
  • MarkovProjection

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.