FINCH-Clustering icon indicating copy to clipboard operation
FINCH-Clustering copied to clipboard

Error when runninng TW_FINCH and specifying the number of clusters.

Open YaserAlOsh opened this issue 2 years ago • 0 comments

Hello, Thank you for publishing your excellent work.

I was testing the TW_FINCH for clustering and it has been working well, but when I tried to specify the exact number of clusters I wanted, I got the following error:

    [186]  ind = [i for i, v in enumerate(num_clust) if v >= req_clust]
--> [187]  req_c = req_numclust(c[:, ind[-1]], data, req_clust, distance, use_tw_finch=tw_finch)
    [188]else:
    [189]  req_c = c[:, num_clust.index(req_clust)]

IndexError: list index out of range```

It seems to be in the c[:,ind[-1]] call.

What could be the reason behind this error?

Thank you.

YaserAlOsh avatar Nov 13 '23 16:11 YaserAlOsh