Skip to content

Set random seed for approximate inference #4024

Open
@arose13

Description

@arose13

I'm trying to set the random seed for approximate inference. It appears as if it is not possible but I'm not sure if this is true.

(The method being used is ADVI)

self._approx = pm.fit(n=100000, method=approx.lower(), random_seed=42)  # type: pm.Approximation
self.trace = self._approx.sample(draws=n_samples)  # HERE I CANNOT SET A SEED

I assume this is not impossible in principle. Let me know if there's anything I can do that can help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions