jmschrei / pomegranate

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

Fixed sample_weights not casted to tensor in Normal distribution #1104

Open dmg99 opened 2 weeks ago

dmg99 commented 2 weeks 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