pairwise_distances produces a distance matrix, but you need a similarity matrix (a kernel's Gram matrix). I don't see why you put NetworkX in the loop as well.
確定! 回上一頁