Mean-Squared Error #
Tape node and Fréchet derivative proof for scalar mean-squared error.
noncomputable def
Proofs.Autograd.TapeNodes.mseLoss
{Γ : List Spec.Shape}
{s : Spec.Shape}
(yhat target : Idx Γ s)
:
Mean-squared-error loss node: c * ‖yhat - target‖^2, with c = 1 / size(s).
Instances For
noncomputable def
Proofs.Autograd.TapeNodes.mseLossFderiv
{Γ : List Spec.Shape}
{s : Spec.Shape}
(yhat target : Idx Γ s)
:
NodeFDerivCorrect (mseLoss yhat target)
NodeFDerivCorrect for mse_loss.