Repository navigation
Conversation
|
Hello @josef-pkt! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
| k_letters = len(all_) | ||
| letter = [] * k_letters | ||
| for i in range(k_groups): | ||
| ss = ''.join(alphabet[j] if i in set_j else ' ' for j, set_j in enumerate(all_)) |
There was a problem hiding this comment.
for visualization it looks better if there is a space between letters
| Parameters | ||
| ---------- | ||
| edges : array_like, 2-D, or None | ||
| array or list of lists with edges in rows and two. |
There was a problem hiding this comment.
unfinished sentence?
Do we have unit tests for using array?
|
funny detail with current code When specifying the distance matrix, and a diagonal element is nonzero (1), then it does not form a clique with itself. No letter is assigned to group (if it also has nonzero distance to the other groups). Insufficient input validation? As aside: |
|
problem with pandas html in notebook We need to add "-" for empty letter position, optionally (The above is from an adjusted version of the cylinder example where also Germany differs from rest.) sorted by mean: |
|
It looks like relabeling integer indices is quite easy. e.g. change label of first two groups I did not manage to get a linear algebra row permutation matrix to work. update |
rebased version of PR, closes #3674
second commit uses unit test from previous PR, adjustments for unique ordering and labeling.