zpengc

Results 6 comments of zpengc

def acc(self, y, p): return accuracy_score(y, p) is this ok?

@qingsuijiu 可以直接改成else

in python2, / operator return integer as result, while in python3, / operator return float as result and // operator return integer as result

the error line is at **G.edges[edge[0]][edge[1]]['weight'] = 1**. Just convert it to G[edge[0]][edge[1]]['weight'] = 1

convert **class GraphN2V(node2vec.Graph):** to **class GraphN2V:**

你把你的cgit路径放到环境变量PATH下了么