Skip to content

Can't stick strings into a pm.Data container #6245

Open
@michaelosthege

Description

@michaelosthege

Description of your problem

with pm.Model():
    pm.ConstantData("dnames", ["A", "B"])

gives

TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

This is related to the automatic masking/imputation that we tried to remove in #6189.

Versions and main components

  • PyMC/PyMC3 Version: 4.2.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions