Skip to content

pm.Data transforms its contents into floats inappropriately #3493

Closed
@rpgoldman

Description

@rpgoldman

Whatever the data type that it receives, the pm.Data constructor turns it into a float, using pm.model.pandas_to_array which, in turn, calls pm.floatX. @ferrine says there's a substitute function, pm.theanof.smartfloatX that would be appropriate to substitute.

I need to clear a couple of existing PRs before I can do anything with this. If anyone else would like to grab it in the meantime, that would be great.

Note that we need to check pm.set_data() to see if it does the same thing. I don't understand the other functions in pm.data.py that deal with DataFrames, etc., so it's possible something lurks in there, as well.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions