Here you could use, 

```
np.average(np.abs(y_pred - y_true), weights=sample_weight)
```