Skip to content

[Docs] - Supplying gradients from an external, non-torch function #636

@ghutchis

Description

@ghutchis

🚀 Feature Request

We've been using Bayesian optimization (with GPyOpt) for molecular geometries. I'd like to migrate to BoTorch and as a non-expert, I'm hitting some walls with the current docs.

Yet... I'd like to connect to external codes for evaluation functions and gradients to supply them to the optimization loop (i.e., rather than using auto-diff from a torch model).

I suspect I'm just missing some docs..

Motivation

Is your feature request related to a problem? Please describe.

Many optimization problems use external codes. Sometimes they have well-defined, known gradients w.r.t variables.

It would be great to have a tutorial with evaluation function and gradient function for gradient-assisted optimization loops.

Pitch

Describe the solution you'd like

An example class like the synthetic test functions code, but with a gradient method.

Describe alternatives you've considered

I've used simple functions without gradients, but optimization is slow.

Are you willing to open a pull request? (See CONTRIBUTING)

I'd be happy to write out a notebook tutorial and contribute if someone can point me in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions