LeastSquares.
weights
The least squares estimator weighting function for the IRLS algorithm.
The psi function scaled by the input z
z : array_like
1d array
weights : ndarray
weights(z) = np.ones(z.shape)