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
There is a line:
if not all(hasattr(elem, 'iter') and len(elem) == self.n_feats for elem in self.distributions)
raise ValueError('Invalid distributions input! Input must have dimensions (n_clusters, n_feats).')
Because self.distributions is a list, then len(elem) is the character number of the distribution string. e.g. 'gaussian' is 8 character, so this line demands that the n_feats to be 8
The text was updated successfully, but these errors were encountered:
As far as I can tell, this line checks if the input for the distributions is a matrix of dimension n_clusters x n_feats.
Indeed if you send it a list of strings (as opposed to a list of lists of strings), the check would verify the wrong thing.
Would you care to make a pull request for this issue?
There is a line:
if not all(hasattr(elem, 'iter') and len(elem) == self.n_feats for elem in self.distributions)
raise ValueError('Invalid distributions input! Input must have dimensions (n_clusters, n_feats).')
Because self.distributions is a list, then len(elem) is the character number of the distribution string. e.g. 'gaussian' is 8 character, so this line demands that the n_feats to be 8
The text was updated successfully, but these errors were encountered: