Open ShunliRen opened 3 years ago
You need to install Julia in order to generate the spectral embeddings.
If you're too lazy, you can just run the models without the spectral embeddings - I think MLP + C&S on Products still gets to 83.56 or so.
The problem is that after my installing julia, the error occur. I CAN import julia ,but the error happened. Even i don't use "use-embedding" , the error still occurs.
FileNotFoundError: [Errno 2] No such file or directory: 'julia'
Can you post the exact command you're running, as well as the stack trace?
python gen_models.py --dataset products --model mlp --hidden_channels 200
` Namespace(dataset='products', device=0, dropout=0.5, epochs=300, hidden_channels=200, log_steps=1, lr=0.01, model='mlp', num_layers=3, runs=10, use_embeddings=False)
embeddings/spectralproducts.pt not found or not enough iterations! Regenerating it now
Traceback (most recent call last):
File "gen_models.py", line 207, in
FileNotFoundError: [Errno 2] No such file or directory: 'julia'` I do not use embedding. and how to generate embedding?
Ah - comment out line 148 and 147 here: https://github.com/CUAI/CorrectAndSmooth/blob/master/gen_models.py#L148 to run without embeddings.
To install Julia for generating the spectral embeddings, you need to install pyjulia in addition to the actual Julia language itself: https://julialang.org/
Similar problem here! I installed Julia and made PATH all right, but it says " julia.core.UnsupportedPythonError: It seems your Julia and PyJulia setup are not supported. " Could you please tell me what version did you use? (Python, Pytorch, cuda, Julia, PyJulia) Mine was (3.7.7, 1.8.0, 10.1, 1.5.4, ???)
3.8.3 , 1.7.0,10.2,0.5.6. _
I am using python 3.6.10, pytorch 1.6.0, cuda 10.1, julia 1.0.5, pyjulia 0.5.6. Please check against the installation steps in https://pyjulia.readthedocs.io/en/latest/installation.html.
import julia; julia.install()
in addition. Hi, I also have a question about Julia
' from julia import Main ' no Main
After my installing the julia package, the following error happened when I run the code 'gen_models'. FileNotFoundError: [Errno 2] No such file or directory: 'julia' WHY? thx!