[Example][Refactor] Refactor RGAT example#4530
Conversation
|
To trigger regression tests:
|
|
@mufeili As I renamed file, the diff is not there... Sorry for any inconvenience. Pls feel free to let me change it back to ease the review process. |
I think you can get the benefit of the both by directly renaming the original file rather than create a new file and delete the original file. |
0ea2c73 to
e038798
Compare
Really? I don't know where I did wrong. I tried As for alternative, I reformed the commit tree of this PR. Please checkout this commit for review 025cb1f. The other commit is just for file renaming. |
Did this happen before? I think you also did something like that before. What if you rename the file via an IDE? |
93c4a79 to
26f211f
Compare
|
I am not sure... I tried in IDE(vscode) but it still doesn't work. I changed the file name back for now. |
56c684d to
575203b
Compare
575203b to
a2d8e53
Compare
|
@mufeili |
|
@chang-l Cool, thanks for sharing the information |
| val_acc = evaluate(model, val_dataloader, 'Val. ') | ||
| test_acc = evaluate(model, test_dataloader, 'Test ') | ||
| print("Epoch {:05d} | Loss {:.4f} | Validation Acc. {:.4f} | Test Acc. {:.4f} " | ||
| . format(epoch, total_loss / (it + 1), val_acc.item(), test_acc.item())) |
There was a problem hiding this comment.
Thanks. I updated accordingly.
|
Sorry for the late review. It looks great in general and I've left some minor comments. |
Description
To resolve #4411, this PR refactors rgat example according to the golden example #4186.
Checklist
Please feel free to remove inapplicable items for your PR.
or have been fixed to be compatible with this change
Changes
Similar code style as previous refactors
Results