-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-train Model #3
Comments
Hi Simon, The file '../src/PreTrain/community_detection/com-amazon_final.f.txt' should be generated by the pretrain model MAGIC, which is the trained embeeding file of MAGIC. Best regards, |
Dear Yuting, Thanks for the fast reply! The real problem is that when I run magic, the "..._final.f.txt" file is not generated! I made sure that I gave the right input AGM file. I have tried it with all three included datasets but I do not see any files being generated. Therefore format_transform.py is not really the problem, I just dont see magic generating that txt file. I fear that it may have something to do with how the magic.exe file is generated. I installed MinGW as mentioned in the readme file. I opened the PreTrain directory in powershell and ran the "make" command which generated all the ".o" files as well as magic.exe. Next I return to python to run prepare_pretrain_embedding.py given the correct -i and -o arguments. The code runs but no "...final.f.txt" file is generated. When I run subprocess.call(magic ...) I do not get any errors (exit code 0). I see the below post when running magic. Note for -o I tried to generate file directly in PreTrain directory and for -i I placed the agm file in the PreTrain directory as well. Hopefully this makes my problem more concrete. Obviously making a minimum reproducible code sample is not really possible here. Do you have any suggestions to get "...final.f.txt" to be generated? PYTHON MESSAGE POST: Process finished with exit code 0 Thanks in advance, Simon |
UPDATE: By running magic.exe directly into windows powershell, the code is fully executed. Hopefully this helpes anyone with a similar issue in the future! |
@r0438930 |
Dear,
After running make.exe to compile the Makefile, this generates the magic.exe.
Next I try to run 'python prepare_pretrain_embedding.py' which recognizes the subprocess.call('magic -i ...) but calling
subprocess.call('python format_transform.py ...) gives me the below error. I realize that com-amazon_final.f.txt is not found but what is this file and how do I generate it? Is this the output of the subprocess.call('magic ...)?
Since I am trying to run CommunityGAN on different datasets I really hope to find a solution.
ERROR MESSAGE:
Traceback (most recent call last):
File "format_transform.py", line 13, in
with open(bigclam_out_filename) as fp, open(output_filename, 'w') as out_fp:
FileNotFoundError: [Errno 2] No such file or directory: '../src/PreTrain/community_detection/com-amazon_final.f.txt'
Sincerely,
Simon
The text was updated successfully, but these errors were encountered: