pdft.tasks.completion_loss#
- pdft.tasks.completion_loss(*, k, steps)[source]#
(basis, images, masks) -> scalar: the mean squared error ofcompleteover a batch.The objective of training through the solver.
imagesandmasksare 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.