clhchtcjj / BiNE

BiNE: Bipartite Network Embedding
225 stars 80 forks source link

biadjacency_matrix issue #1

Closed chihming closed 6 years ago

chihming commented 6 years ago

Any idea how to solve this?

  File "train.py", line 53, in walk_generator
    gul.homogeneous_graph_random_walks_for_large_bipartite_graph(datafile=args.train_data, percentage=args.p, maxT=args.maxT, minT=args.minT)
  File "/tmp2/cmchen/proRec/BiNE/model/graph_utils.py", line 111, in homogeneous_graph_random_walks_for_large_bipartite_graph
    A,row_index,item_index= bi.biadjacency_matrix(self.G, self.node_u, self.node_v, dtype=np.float,weight='weight', format='csr')
ValueError: too many values to unpack
clhchtcjj commented 6 years ago

I have solved this problem, you can download the code and run it again.

chihming commented 6 years ago

many thanks