Code Monkey home page Code Monkey logo

regal's People

Contributors

danai112358 avatar markheimann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

regal's Issues

Get best alignment

I'm trying to add a code to alignments.py, to get the best alignment the alignment matrix doesn't work, but it doesn't work for me, I don't know if it finds the error and could you help me with it?

def get_best_alignment(alignment_matrix):
  n_nodes = alignment_matrix.shape[0]
  result = []
  if not sp.issparse(alignment_matrix):
      sorted_indices = np.argsort(alignment_matrix)
  for node_index in range(n_nodes):
    target_alignment = node_index #default: assume identity mapping, and the node should be aligned to itself      

    if sp.issparse(alignment_matrix):
          row, possible_alignments, possible_values = sp.find(alignment_matrix[node_index])
          node_sorted_indices = possible_alignments[possible_values.argsort()]
    else:
          node_sorted_indices = sorted_indices[node_index]

    result.append([target_alignment, node_sorted_indices[-1:][0]])

  return result

The idea is that of a result type [A -> B...].

Hi Mark, how to construct the joint adj A and the truth alignment adj P?

Hi Mark,

Sorry to bother you again. Now I try to use some datasets(arenas-meta.edges) get online as A1 for your REGAL program. As I learned from your paper, the input for this program is a jointed matrix in the form as A = [A1,0;0,A2]. 
The adjacency matrix A1 is the true adj of the network we focus on, while the other matrix A2 is just generated by A2 = P * A1 *P' (P is randomly generated).  
Now, I have constructed both the jointed adjacency matrix A and the true-alignment matrix P as input in your method. But my output result is really bad... I only got 0.02 for score top10. 
I've spent 2 days on contructing the correct-format input file for the program. The input file I constructed and the corresponding code generating it have been upload as appendix.
I'm afraid it would be a bother for you to read my code or find mistakes in it... So would you like to give some more detail about how to construct the joint adj A and the truth alignment file P which respectively respond to the file named "arenas_combined_edges.txt" and the file named "arenas_edges-mapping-permutation" in your program? It would be better if you already have some program deal with this problem and if you can share it with me...

I have been confused on this problem for a long time... I'm looking forward to your reply.

Best wishes,
Weifan

code.zip

I am confused with the dataset arenas.

Dear Authors,

I found from the anchor pairs file: "arenas_edges-mapping-permutation.txt" , see below records:

anchor = pickle.load(open('data/arenas_edges-mapping-permutation.txt','rb'))
anchor[0]
334
anchor[334]
1120
anchor[1120]
1103


Does it mean the pairs (0,334), (334,1120), (1120,1103)..... are all anchors ?

Also, I found the from the edge list file "arenas_combined_edges.txt", there are 2270 nodes totally (node ids range from 0 to 2269), and there are 1135 pairs of anchors, but all the anchor node ids are range from 0 to 1134, no one is in the range from 1135 to 2269.

Could you please help to make it clear?

Regards,
Bryan Chen

Question about fig2

B has a 1-hop neighbor A whose degree is 3, so why d^1_B is not [0,0,1,0], but in paper is [1,0,0,0] ?

Question about figure 4 in the paper!

Glad to read your paper,it's a good idea. I tried to realize the regal as your paper said , but I can only reach the accuracy shown in figure 4 when using top-5, I'd like to konw whether you use top-5 accuracy in figure 4 as well. By the way, file, arenas_combined_edges.txt seems not to flip edges.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.