Skip to content

Commit

Permalink
FIX gmm sample fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmschrei committed Apr 2, 2016
1 parent 395ff33 commit ccca710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pomegranate/gmm.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ cdef class GeneralMixtureModel( Distribution ):

samples = []
for i in xrange(n):
d = numpy.random.choice( self.distributions, p=numpy.exp(self.weights), size=n )
d = numpy.random.choice( self.distributions, p=numpy.exp(self.weights) )
samples.append(d.sample())

return samples if n > 1 else samples[0]
Expand Down

0 comments on commit ccca710

Please sign in to comment.