Skip to content

CategoricalGibbsMetropolis is slower than the older ElemwiseCategoricalStep #1563

@Anjum48

Description

@Anjum48

Looking at Austin Rochford's Dirichlet process mixture model which used the older ElemwiseCategoricalStep, it looks 20,000 iterations took just over 2 minutes.

Comparing to the same example in the docs which uses the newer CategoricalGibbsMetropolis, the same number of iterations takes over 14 minutes.

Does anyone know why there is such an increase in run time and if there's a way to make it faster? I've just updated my code (with the new step method) with uses the same model but on much larger data sets, and what used to take a few days to run now looks like it might span weeks :(

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