Code Monkey home page Code Monkey logo

large_scale_cc's Introduction

===============================================
Large Scale Correlation Clustering Optimization
===============================================

1. Included packages
--------------------
This distribution includes the following package
QPBO - see below

2. Main functions
-----------------
This package contains the following functions
a_expand.m - implementation fo the expand&explore algorithm (Alg. 1 in Bagon&Galun2011)
ab_swap.m  - implementation fo the swap&explore algorithm (Alg. 2 in Bagon&Galun2011)
AL_ICM.m   - implementation fo the adaptive label ICM (Sec. 5.2 in Bagon&Galun2011)

3. Installation
---------------
a. Download the tarball from the website and extract it to a local folder.
b. Make sure your mex compiler under Matlab is well setup.
   If it does not, type (in Matlab)
   >> mex -setup
   and chhose either the visual studio compiler (for PC), or the gcc compiler (of Linux)
c. Change directory in Matlab to the local folder in which you extracted the tarball
d. Run:
   >> mexall
   This will compile several mex files required by our algorithms.
e. If no error appear - you are good to go...

4. Documentation
----------------
Use (in Matlab)
>> doc <function name>
To see usage instructions and documentation for the various functions.

5. Usage example
----------------
Here is a small usage example (you may use this example to test your installation)
You may copy-paste these commands into Matlab:
%
[gt w] = MakeSynthAff(100, [1 3 5 2], 10, .5, .1); % creates a synthetic sparse affinity matrix
plotWl(w,gt);     % plot the matrix ordered according to the ground-truth labeling
el = a_expand(w); % CC optimization using expand&explore
plotWl(w,el);     % visualize the result
sl = ab_swap(w);  % CC optimization using swap&explore
plotWl(w,sl);     % visualize the result
il = AL_ICM(w);   % CC optimization using adaptive-label ICM
plotWl(w,il);     % visualize the result
[CCEnergy(w,gt) CCEnergy(w,el) CCEnergy(w,sl) CCEnergy(w,il)], % output CC objective values for the different partitions.

6. Proper reference
-------------------
Using this software in any academic work you must cite the following works in any resulting publication:
S. Bagon and M. Galun. "Large Scale Correlation Clustering Optimization", arXiv'2011
C. Rother, V. Kolmogorov, V. Lempitsky, and M. Szummer. "Optimizing binary MRFs via extended roof duality", CVPR'2007


A. Included package:
QPBO: Vladimir Kolmogorov's implementation
------------------------------------------
source files from:
http://pub.ist.ac.at/~vnk/software.html

large_scale_cc's People

Contributors

shaibagon avatar

Watchers

James Cloos avatar 曹明伟,Mingwei Cao 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.