Skip to content

Commit 6c546ef

Browse files
blethamfacebook-github-bot
authored andcommitted
Fix lint and documentation issue from D51906858 (pytorch#2157)
Summary: Pull Request resolved: pytorch#2157 D51906858 introduced a lint issue and a documentation issue. I'm mystified as to why arc lint did not pick up the lint issue?. In any case, this fixes it. Reviewed By: saitcakmak Differential Revision: D52316861 fbshipit-source-id: ab7198de4a93d792ec5f3fde9d6af29371e3e28b
1 parent 556ce87 commit 6c546ef

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

botorch/utils/multitask.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
def separate_mtmvn(mvn: MultitaskMultivariateNormal) -> List[MultivariateNormal]:
2222
"""
23-
Separate a MTMVN into a list of MVNs, where covariance across data within each task are
24-
preserved, while covariance across task are dropped.
23+
Separate a MTMVN into a list of MVNs, where covariance across data within each task
24+
are preserved, while covariance across task are dropped.
2525
"""
26-
# TODO T150340766 Upstream this into a class method on gpytorch MultitaskMultivariateNormal.
26+
# T150340766 Upstream as a class method on gpytorch MultitaskMultivariateNormal.
2727
full_covar = mvn.lazy_covariance_matrix
2828
num_data, num_tasks = mvn.mean.shape[-2:]
2929
if mvn._interleaved:

sphinx/source/utils.rst

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ Low-Rank Cholesky Update Utils
3737
.. automodule:: botorch.utils.low_rank
3838
:members:
3939

40+
Multi-Task Distribution Utils
41+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42+
.. automodule:: botorch.utils.multitask
43+
:members:
44+
4045
Objective
4146
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4247
.. automodule:: botorch.utils.objective

0 commit comments

Comments
 (0)