Skip to content

Commit

Permalink
Fix typo in objectives documentation (#1838)
Browse files Browse the repository at this point in the history
Summary:
Fixes a documentation typo

Pull Request resolved: #1838

Reviewed By: saitcakmak

Differential Revision: D45931872

Pulled By: Balandat

fbshipit-source-id: fbfe06ebda0579885a3ec572ae993a23385aba1a
  • Loading branch information
chrisyeh96 authored and facebook-github-bot committed May 17, 2023
1 parent be1a1b3 commit 8c9d54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/objectives.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ objective values.
For instance, say you have a multi-output model with $o=2$ outputs, and you want
to optimize a $obj(y) = 1 - \\|y - y_0\\|_2$, where $y_0 \in \mathbb{R}^2$.
For this you would use the following custom objective (here we can ignore the
ninputs $X$ as the objective does not depend on it):
inputs $X$ as the objective does not depend on it):
```python
obj = lambda xi, X: 1 - torch.norm(xi - y_0, dim=-1)
mc_objective = GenericMCObjective(obj)
Expand Down

0 comments on commit 8c9d54b

Please sign in to comment.