We use a weighted-least squares (WLS) solution to fit the tensor model: