add sample_weights to log_loss

T *= sample_weight[:, np.newaxis]

with broadcasting. Avoids allocating a full dense matrix for nothing.