Skip to content
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

problem regarding PALE and FRUI-P #2

Open
msqiqi10 opened this issue Jul 22, 2019 · 0 comments
Open

problem regarding PALE and FRUI-P #2

msqiqi10 opened this issue Jul 22, 2019 · 0 comments

Comments

@msqiqi10
Copy link

Hi:

Thank you for your work!
There are some problems when I try to run the code for PALE and FRUI-P.
When running FRUI-P after embedding generation
python ne_main.py --input data/test.src.net --output test.res --batch-size 6 --table-size 100 --rep-size 4 --method line --neg-ratio 2 --order 1
, and then
python alp_main.py --embedding1 test.res.epoch5.node_order1 --embedding2 ffvm.res.epoch5.node --type-model lin --identity-linkage data/test.align --output test.alp --batch-size 4 --input-size 4 --epochs 10 --method pale --neg-ratio 5 --device :/cpu:0
it says IOError: [Errno 2] No such file or directory: 'test.res.epoch5.node_order1'.

And as for PALE, when I try to generate embedding with python ne_main.py --input data/test.src.net --output test.res --batch-size 6 --table-size 100 --rep-size 4 --method line --neg-ratio 2 --order 1
it returns Traceback (most recent call last): File "ne_main.py", line 78, in <module> main(parse_args()) File "ne_main.py", line 71, in main last_emb_file=args.last_emb_file, negative_ratio=args.neg_ratio) File "/home/zzz0054/alignment experiment codes/alp-baselines-master/net_embed/line.py", line 495, in __init__ , last_emb_file=last_emb_file) File "/home/zzz0054/alignment experiment codes/alp-baselines-master/net_embed/line.py", line 46, in __init__ self._gen_sampling_table() File "/home/zzz0054/alignment experiment codes/alp-baselines-master/net_embed/line.py", line 410, in _gen_sampling_table p += float(math.pow(self.node_degree[j], power)) / norm ZeroDivisionError: float division by zero

Do you mind if you can help me with these problems?

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant