zhichunguo / Meta-MGNN

Few-Shot Graph Learning for Molecular Property Prediction
134 stars 31 forks source link

After 1000 epoch, the training loss and test accuracy remains the same? #6

Open qm-intel opened 1 year ago

qm-intel commented 1 year ago

Hi @zhichunguo

I am facing a challenge with MetaMGNN. I trained the model for 1000 epoch, but the loss and accuracy remains the same. This means it is not training the meta model at all. I am applying your code on my data with 79 node features, however, I tried with your papers features too and the result is similar. I am wondering I am doing mistakes somewhere....

DEBUG:root:Epoch: 0 Train Loss: 0.8704835772514343  Test Accuracy: 43.87436384313247    
DEBUG:root:Epoch: 1 Train Loss: 0.32417869567871094 Test Accuracy: 49.572593688964844   
DEBUG:root:Epoch: 2 Train Loss: 0.09464379400014877 Test Accuracy: 42.63082504272461    
DEBUG:root:Epoch: 3 Train Loss: 0.07533042877912521 Test Accuracy: 54.545582715202784   
DEBUG:root:Epoch: 4 Train Loss: 0.11637484282255173 Test Accuracy: 44.320564943201404   
DEBUG:root:Epoch: 5 Train Loss: 0.034378036856651306    Test Accuracy: 54.640758626601276   
DEBUG:root:Epoch: 6 Train Loss: 0.03435908630490303 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 7 Train Loss: 0.03385530039668083 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 8 Train Loss: 0.03292354196310043 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 9 Train Loss: 0.0315357968211174  Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 10    Train Loss: 0.03256123140454292 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 11    Train Loss: 0.03294479474425316 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 12    Train Loss: 0.032359760254621506    Test Accuracy: 50.21079287809484    
.
.
.

DEBUG:root:Epoch: 994   Train Loss: 0.031872864812612534    Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 995   Train Loss: 0.03162331134080887 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 996   Train Loss: 0.03111858479678631 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 997   Train Loss: 0.03308967500925064 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 998   Train Loss: 0.031367577612400055    Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 999   Train Loss: 0.03169362619519234 Test Accuracy: 50.21079287809484    
DEBUG:root:Epoch: 1000  Train Loss: 0.0316644087433815  Test Accuracy: 50.21079287809484    
INFO:root:Training has finished.

What I did include the followings:

ShaoZhenLiu commented 9 months ago

Have you found out why? I have the same question 😭