To achieve proper normalization in giving weights to misclassified entries, we can redistribute a total weight k − 1 to each row of H proportionally to its values, where k is the number of genres.
given g the row summation of H, we define a weight matrix Q by normalizing the rows of H in a way given by Q ab = (k − 1)h ab /g a , a = b.