Skip to content

Unable to update values on a custom mean model. #142

@arkottke

Description

@arkottke

I implemented george.modeling.Model to provide a custom model. During optimization, it tries to call self.set_vector. I believe that this should be self.set_parameter_vector. The potential bug here:

for i, v in enumerate(vector):
    vector[i] = v + _EPS
    self.set_vector(vector)
    value = self.get_value(*args, **kwargs)
    vector[i] = v
    self.set_vector(vector)
    grad[i] = (value - value0) / _EPS

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