pdft.tasks.completion_loss

pdft.tasks.completion_loss#

pdft.tasks.completion_loss(*, k, steps)[source]#

(basis, images, masks) -> scalar: the mean squared error of complete over a batch.

The objective of training through the solver. images and masks are stacks along a leading axis: (B, H, W) images under (B, H, W) masks, or (B, C, H, W) colour images under (B, H, W) masks shared by their channels ((B, C, H, W) masks are taken as they are). The unobserved pixels are the supervision and are never shown to the solver.

Parameters:
Return type:

Callable[[object, Array, Array], Array]