When using the --has_edge_importance argument in the dglke_train function, is a higher edge importance score weighted as more important than a lower edge importance score? Or vice versa?
The higher edge_weight, it means it will contribute more to the loss.
Usually you can assign higher weight to low frequency relations, to handle the data imbalance problem.
When using the --has_edge_importance argument in the dglke_train function, is a higher edge importance score weighted as more important than a lower edge importance score? Or vice versa?
Based on the
get_total_loss
function, it seems that a lower edge weight would be more favorable in the loss calculation. https://github.com/awslabs/dgl-ke/blob/b4e57016d5715429377d5aab79e88c451dc543f5/python/dglke/models/pytorch/loss.py#L69-L77Thank you.