Comments (2)
Dear Naarkhoo,
that is actually expected behaviour. Please see the paper by Brunet et al. on cophenetic correlation coefficient-based measure.
To compute the cophenetic correlation scores (coph_cor is the name of the method in Nimfa), one need the consensus matrix. Consensus matrix is the average connectivity matrix over many runs. The last thing is crucial here.
If you call model.estimate_rank method, the factorization is repeated several times (depending on n_run parameter), each run produces a distinct connectivity matrix and these are then used for estimating the consensus matrix.
If you call fit.summary() then the cophenetic measure is computed based on single current factorized model, which has only one connectivity matrix and the consensus matrix is then trivial: all of its entries are equal to 1. Notice that the entries in consensus matrix range from 0 to 1 and reflect the probability that samples i and j are clustered together. Entries equal to 1 indicate perfectly stable clustering and no varying among the runs (obviously, as we have only one factorized model there aren't any variations here). In short, fit.summary() returns perfect stability (cophenetic = 1) because we have access to matrix factors from a single run and based on that data alone the stability of clustering is perfect. That is, its estimation is useless and factorization should be repeated several times.
- See Nimfa's documentation on estimate_rank method at http://nimfa.biolab.si/nimfa.models.nmf.html. There is a note that estimate_rank tracks matrix factors because it needs them for computing cophentic correlation coefficient.
- See paper 'Metagenes and molecular pattern discovery using matrix factorization' by Brunet et al., which describes the method implemented in Nimfa for evaluating the stability of clustering using cophenetic correlation coefficient. Method of Brunet et al. is computed s the Pearson correlation of two distance matrices: the distance between samples induced by the consensus matrix, and the distance between samples induced by the linkage used in the reordering of of consensus matrix.
from nimfa.
Thanks, Now, It makes a lot of sense. I will look into those paper.
from nimfa.
Related Issues (20)
- Numpy deprecation warning HOT 2
- "Don't know how to make test" on Python 3.5 HOT 1
- Help - How to estimate Coef (as in the H matrix) from a pre-computed W (the base matrix) HOT 1
- nimfa in orange HOT 1
- Warnings in snmf.py and performance
- Unhashable type: 'matrix' when trying to use purity function HOT 3
- KeyError: <built-in function format> in SepNMF HOT 1
- mixing matrix of unseen data? HOT 4
- Unable to run examples.recommendations HOT 2
- PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices
- How to reproduce NMF result by setting seed? HOT 2
- Added to conda HOT 3
- Does this code support Missing Value with imputation? HOT 2
- Speed Benchmarks HOT 2
- cophenetic calculation for rank estimation HOT 2
- Factorization with uncertainty and missing data
- Docs [enhancement]
- Lfnmf HOT 2
- How to use the bmf function to obtain a binary matrix?
- Sparseness measure returns 1 for array of zeros
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimfa.