You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In code like this where d2s_extended is added, the values may not make the threshold if the document was included in two clusters. In that case, each gets 0.5 instead of the 1.0, so they will need some help from the seeded_matrix, but may not get it. If they are in three seeded clusters, they get 0.33 each, so it gets less probably that they will make it. This could be a bug or a features. If it is important that they stay in the seeded clusters, the condition might change. They can make the threshold or just be a non-zero in d2s_extended.
defassign_soft_labels(self, d2s_extended):
# Replace the matrix with the appropriate assignments for the seeded documents:seeded_matrix=self.matrix.copy()
ifd2s_extended.size!=0:
seeded_matrix+=d2s_extended# Zeros won't affect non-seeded, but seeded will become greater than one and thus will always match the thresholdself.clusters=list(map(lambdai: self.documents[np.where(seeded_matrix[:, i] >=self.threshold)[0]], range(seeded_matrix.shape[1])))
The text was updated successfully, but these errors were encountered:
In code like this where
d2s_extended
is added, the values may not make the threshold if the document was included in two clusters. In that case, each gets 0.5 instead of the 1.0, so they will need some help from the seeded_matrix, but may not get it. If they are in three seeded clusters, they get 0.33 each, so it gets less probably that they will make it. This could be a bug or a features. If it is important that they stay in the seeded clusters, the condition might change. They can make the threshold or just be a non-zero in d2s_extended.The text was updated successfully, but these errors were encountered: