mlp_mse_gradient: Compute MSE Gradient for an MLP

View source: R/mlp_gradient.R

mlp_mse_gradientR Documentation

Compute MSE Gradient for an MLP

Description

Internal helper for computing the gradient of MSE loss with respect to the MLP parameter vector.

Usage

mlp_mse_gradient(x, y, weights, architecture)

Arguments

x

Numeric input matrix.

y

Numeric response vector.

weights

Numeric parameter vector.

architecture

MLP architecture object.

Value

A list containing loss, predictions, and gradient vector.


metANN documentation built on May 16, 2026, 1:06 a.m.