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

Method GetEmbedding

src/ETW/real-time/ProvGraph.py:144–147  ·  view source on GitHub ↗
(self, corpus, model)

Source from the content-addressed store, hash-verified

142 x = self.nodes[node]['label']
143 return x
144 def GetEmbedding(self, corpus, model):
145 tmp = [model.wv[i] for i in corpus]
146 r = np.mean(tmp,axis=0)
147 return r.tolist()
148 # def Gettfidf(self,node_attr_vec):
149
150 # 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