This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sklearn.datasets import make_biclusters | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| %matplotlib inline | |
| def resort_rows_hclust(U): | |
| """Sorts the rows of a matrix by hierarchical clustering | |
| Parameters: | |
| U (ndarray) : matrix of data |