Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The number of observations cannot be determined on an empty distance matrix #7

Open
sundaresanab opened this issue May 8, 2018 · 2 comments

Comments

@sundaresanab
Copy link

Hi,
We executing 'make_clustergrammer.py' python script from node js using 'Python-shell' npm.

In 'make_clustergrammer.py' we loading net.load_file('d:/ExportText/HeatMap.txt'), this text file contains below matrix,

HeatMap.txt

When i execute, it throws below error,
capture11
capture123
capture231

Thanks in advance.

@cornhundred
Copy link
Contributor

Hi,

I tried clustering your matrix (HeatMap.txt) using Clustergrammer-PY and it gave the same error about an empty matrix

raise ValueError("The number of observations cannot be determined on "
ValueError: The number of observations cannot be determined on an empty distance matrix.

This is happening because you only have a single column with non-zero values. If you try adding another non-zero number to another column your data will cluster. Let us know if that helps.

Best,
Nick

@sundaresanab
Copy link
Author

Thanks for your response.

I will check and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants