weight_matrix