Better Testdata for HClustering
While I first intended to create the matrices manually, it turned out to take too much time if I wanted to reproduce the exact same error as happened in the unit-tests.
So in order to create the matrices used in the earlier blog-posts, I used the script at the end …
Validating the test-case for clustering string values
Here we go again...
After further analysis (the trial & error kind), I found out that the error of modified values only occurs in unsorted data. Which makes perfect sense as Python's list.remove picks the first matching item. So the ordering of data plays a role.
As a quick fix …