MCPcopy Create free account
hub / github.com/PKU-ASAL/Simulated-Data / GetEmbedding

Method GetEmbedding

src/Sysdig/real-time/ProvGraph.py:112–115  ·  view source on GitHub ↗
(self, corpus, model)

Source from the content-addressed store, hash-verified

110 x = -1
111 return x
112 def GetEmbedding(self, corpus, model):
113 tmp = [model.wv[i] for i in corpus]
114 r = np.mean(tmp,axis=0)
115 return r.tolist()
116 # def Gettfidf(self,node_attr_vec):
117
118 # cos = cosine_similarity([node_attr_vec],list(self.tfidf.values()))

Callers 2

graph_taylorMethod · 0.95
final_graph_taylorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected