probcomp / bayeslite

BayesDB on SQLite. A Bayesian database table for querying the probable implications of data as easily as SQL databases query the data itself.
http://probcomp.csail.mit.edu/software/bayesdb
Apache License 2.0
922 stars 64 forks source link

Fix Loom._convert_to_proper_stattype to account for float/int differences #614

Closed fsaad closed 6 years ago

fsaad commented 6 years ago

https://github.com/probcomp/bayeslite/blob/0ef41388771bef76b934e9d7c4d3091d94ca1c46/src/backends/loom_backend.py#L808-L821

Returning float(value) will cause a problem for counts data (and boolean as well, I believe).