Skip to content

Commit

Permalink
Document how to implement custom models (#2474)
Browse files Browse the repository at this point in the history
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to make BoTorch better.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to BoTorch here: https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md
-->

## Motivation

Issue #2306

### Have you read the [Contributing Guidelines on pull requests](https://github.com/pytorch/botorch/blob/main/CONTRIBUTING.md#pull-requests)?

Yes. Added a tutorial which can be used for smoke tests.

Pull Request resolved: #2474

Test Plan:
Probabilistic linear regression, bayesian linear regression, and ensemble linear regression all yield optimization results close to (0, 0) which is groundtruth answer.

Random Forest doesn't seem to achieve groundtruth answer, likely due to its inability to incorporate gradient information into the optimization of the acquisition function.

## Related PRs

N/A

Reviewed By: esantorella

Differential Revision: D61612799

Pulled By: jakee417

fbshipit-source-id: 63d26c048dc4544cae37e89767e14caf732e7749
  • Loading branch information
jakee417 authored and facebook-github-bot committed Aug 22, 2024
1 parent 9df7a40 commit 81f2a88
Show file tree
Hide file tree
Showing 2 changed files with 1,037 additions and 0 deletions.
1,033 changes: 1,033 additions & 0 deletions tutorials/custom_model.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions website/tutorials.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
{
"id": "ibnn_bo",
"title": "Bayesian optimization with infinite-width neural networks"
},
{
"id": "custom_model",
"title": "Writing a custom model with the Model and Posterior Interfaces"
}
],
"Multi-Objective Bayesian Optimization": [
Expand Down

0 comments on commit 81f2a88

Please sign in to comment.