fuzzyclust.models.weighted_least_squares#

fuzzyclust.models.weighted_least_squares(Xe, Y, w)[source]#

Weighted least-squares estimate of local model parameters.

\[\boldsymbol\theta = (\mathbf{X}_e^T\boldsymbol\Phi\mathbf{X}_e)^{-1} \mathbf{X}_e^T\boldsymbol\Phi\mathbf{Y}\]
Parameters:
Xendarray of shape (n_samples, n_params)

Extended regressor matrix (last column of ones for the intercept).

Yndarray of shape (n_samples, n_outputs)
wndarray of shape (n_samples,)

Non-negative weights (the diagonal of \(\boldsymbol\Phi\)).

Returns:
thetandarray of shape (n_params, n_outputs)