Closed pnrobinson closed 4 years ago
@pnrobinson - great idea! I'm happy to work on this. I know there are some embedding loading and writing functions in the scripts we could also pull out and add to a utility embedding script.
Will add a new branch for this off of develop
.
+1 @callahantiff !
@pnrobinson @callahantiff I think we may need adding Common Neighbors, Jaccard’s Coefficient, Adamic-Adar Score, Preferential Attachment scores, too. We don't need embedding to calculate these scores. But, I think we eventually need to calculate these scores and compare with node2vec results.
@pnrobinson @callahantiff I think we may need adding Common Neighbors, Jaccard’s Coefficient, Adamic-Adar Score, Preferential Attachment scores, too. We don't need embedding to calculate these scores. But, I think we eventually need to calculate these scores.
@vidarmehr, great point! Maybe we create a utility function for link prediction methods as well then?
@pnrobinson @callahantiff I think we may need adding Common Neighbors, Jaccard’s Coefficient, Adamic-Adar Score, Preferential Attachment scores, too. We don't need embedding to calculate these scores. But, I think we eventually need to calculate these scores.
@vidarmehr, great point! Maybe we create a utility function for link prediction methods as well then?
Yes. I think that is a good idea to have a separate utility function for link prediction methods.
Awesome! We should make these functions so that they are easily testable!
Awesome! We should make these functions so that they are easily testable!
Absolutely! I will also open a second ticket for link prediction function metric utils.
@pnrobinson - perhaps we just want to use the tf built in cosine similarity function?
https://www.tensorflow.org/api_docs/python/tf/keras/metrics/CosineSimilarity
@pnrobinson - perhaps we just want to use the tf built in cosine similarity function?
https://www.tensorflow.org/api_docs/python/tf/keras/metrics/CosineSimilarity
I wrote a simple code to calculate cosine similarity. But, maybe it is good to use the tf implementation, right?
As a rule it is almost always better to use library functions for things like this.
@vidarmehr can we close this now?
@vidarmehr can we close this now?
Yes, Peter. I close it.
Should we add a file with various utility functions for working with the embeddings? For instance, something like this to get the most similar words?