GithubHelp home page GithubHelp logo

danyaljj / constrained_clustering Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 15.0 24.19 MB

A MATLAB project containing many popular / existing constrained clustering algorithms

MATLAB 78.81% HTML 0.02% M 0.01% C++ 8.99% TeX 7.88% C 2.44% Rebol 0.39% R 1.47%

constrained_clustering's People

Contributors

danyaljj avatar se4u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

constrained_clustering's Issues

Undefined function or variable 'containsMethod'

I tried to run the script experiment_toy.m as described in README.md. I got the following error when I did (I am using Matlab R2016b on MacOS):

Undefined function or variable 'containsMethod'.

Error in runClustering (line 102)
if ~containsMethod(name, titles)

Error in experiment_toy (line 22)
runClustering(X,Y,k, 'Gaussian-Mixtures', rate, p, true);

An error in rdpmeans when you remove two clustering at the same iteration

Hi
I have been using rdpmeans and I believe there is an error in the cluster removal section.

centroid( c - add , : ) = [];
nbCluster = nbCluster - 1;
disp('Cluster removed!!!!!!!!!!!!! ')
add = add + 1;
ind = find(assignment > c );
assignment(ind) = assignment(ind) - 1;

when you remove more than one cluster at the same iteration you need to correct the assignments as well

centroid( c - add , : ) = [];
nbCluster = nbCluster - 1;
disp('Cluster removed!!!!!!!!!!!!! ')
ind = find(assignment > c - add);
assignment(ind) = assignment(ind) - 1;
add = add + 1;

That's it.
Thanks a lot for the code.

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.