Skip to content

Categorical distribution bound not enforced early enough #1093

Closed
@fonnesbeck

Description

@fonnesbeck

In the logp for the categorical distribution, the method rightly bounds the value at the appropriate index limits for the vector of probabilities, However, since the log-probability is calculated before the bound is checked, you can still get an IndexError. Unfortunately, Theano breaks the usual exception handling for this.

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