gcucurull / visual-compatibility

Context-Aware Visual Compatibility Prediction (https://arxiv.org/abs/1902.03646)
115 stars 37 forks source link

Question about the function get_degree_supports() #2

Closed Charlie1994 closed 5 years ago

Charlie1994 commented 5 years ago

Hi, I am currently having trouble in understanding the function get_degree_supports() in utils.py. From my understanding the function is used for getting adjacency matrices for node neighbors. But I am quite confused about the for loop and dot product used in this function, it seems it's used for getting neighbor adjacency matrices from different orders?

I am looking forward to your explanation. Thank you very much!

gcucurull commented 5 years ago

Yes, the for loop is used to compute adjacency matrices of different orders. For this paper we ended up using only 1st order adjacency matrix, setting k=1.