jmschrei / pomegranate

Fast, flexible and easy to use probabilistic modelling in Python.
http://pomegranate.readthedocs.org/en/latest/
MIT License
3.38k stars 590 forks source link

Fixed sample_weights not casted to tensor in Normal distribution #1104

Closed dmg99 closed 4 months ago

dmg99 commented 5 months ago

In the file distributions.normal, in the summarize function the input data was casted to tensor and the sample_weights were not. This raised an error later when computing self._xw_sum

jmschrei commented 4 months ago

Thanks!