Skip to content

error when no gradient function is provided #1

@gica3618

Description

@gica3618

When a sampler is initialised without gradient function (that is, grad_logLikelihood=None), and error is thrown by the helpers.py:
NameError: name 'numerical_grad' is not defined
Indeed, numerical_grad on line 53 of helpers.py is not defined. So I believe that currently, the code does not work if no gradient function is provided.
As an example to reproduce the error, one can replace grad_logLikelihood by None on line 185 of imf_examples.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions