Skip to content

Random in Categorical returns wrong shape for 2D parameter #3035

Closed
@junpenglao

Description

@junpenglao

Running:

p = np.random.rand(10, 5)
pm.Categorical.dist(p=p).random()

gives a (10, 5) array instead of (10, ).

cc @ColCarroll

Metadata

Metadata

Assignees

No one assigned

    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