Closed sagihaider closed 6 years ago
Hi. I assume you are using Windows OS. Then, instead of "make", please consult the section "Building Windows Binaries" in liblinear's README: https://github.com/muhanzhang/LinkPrediction/tree/master/software/liblinear-2.1
Dear, I am running the main file and under WLNM.m function line 25 it has a function graph2vector and under it has a function order = g_label(subgraph, p_mo) at line 94 and under that we have cannon.m.
While running the code it is throwing an error at line 46 of cannon.m, which is given as follows: MEX completed successfully. 'cp' is not recognized as an internal or external command, operable program or batch file.
Attempt to execute SCRIPT canonical as a function:
E:\Research\Downloaded Codes\LinkPrediction-master\canonical.m
Error in canon (line 46) clabels = canonical(subgraph1, num_edges, degrees, colors_nauty);
Error in graph2vector>g_label (line 174) order = canon(full(subgraph), classes)';
Error in graph2vector>subgraph2vector (line 94) order = g_label(subgraph);
Error in graph2vector (line 32) sample = subgraph2vector(ind, A, K);
Error in WLNM (line 25) [train_data, train_label] = graph2vector(train_pos, train_neg, train, K);
Error in Main (line 50) tempauc = WLNM(train, test, 10, ith_experiment); % WLNM
Can you please look into this. Many thanks
Hi, the problem you encountered was because "cp" is the copy command for linux system. For windows, you need to use "copy" instead. You may also need to change path separators "/" to "\" in windows. Another way is to manually copy "canonical.c" to "software/nauty26r7", and run "mex canonical.c nauty.c nautil.c naugraph.c schreier.c naurng.c nausparse.c;" in matlab, then manually copy the generated "canonical.mexw64" to the main folder, and finally comment out line 30-40 in "canon.m".
Sorry I don't have a windows configuration to test it for you. Hope the above helps!
Dear, I am following your instructions and I am getting the following error,
=> Please check README for detailed instructions.