Skip to content

Bugs in model update? #63

@fuku10

Description

@fuku10

Hello,
I found a strange behavior in model optimization of mgpr.py.

(1)
Is best_params["k_lengthscales"] = model.kernel.lengthscales
best_params["lengthscales"] = model.kernel.lengthscales ?

(2)
It seems that best_params is updated when optimizer.minimize(model.training_loss, model.trainable_variables) is executed. It means that the values of best_params always changes regardless of whether if loss < best_loss is True or False.

My environment is;
Python 3.7.12
tensorflow 2.9.1
gpflow 2.5.2
gym 0.18.0

Thanks,

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