Skip to content

Commit

Permalink
[FIX] Darglint
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Oct 27, 2023
1 parent 26234c9 commit 7161f21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion curvlinops/kfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,14 @@ def draw_label(self, output: Tensor) -> Tensor:
:math:`\{f_\mathbf{\theta}(\mathbf{x}_n)\}_{n=1}^N`.
Returns:
A sample :math:`\{\mathbf{y}_n\}_{n=1}^N` drawn from the model's predictive
A sample
:math:`\{\mathbf{y}_n\}_{n=1}^N` drawn from the model's predictive
distribution :math:`p(\mathbf{y} \mid \mathbf{x}, \mathbf{\theta})`. Has
the same shape as the labels that would be fed into the loss function
together with ``output``.
Raises:
NotImplementedError: If the loss function is not supported.
"""
if isinstance(self._loss_func, MSELoss):
std = {
Expand Down

0 comments on commit 7161f21

Please sign in to comment.