Specformer icon indicating copy to clipboard operation
Specformer copied to clipboard

At 950 epochs, the best results on the zinc dataset are still more than 1.4, for a total of just 1,000 epochs

Open QSNZNJING opened this issue 2 years ago • 1 comments

The experiment seems to have lost some code files,such as pygdataclass.py ...And what is returned in the SpecformerZINC model is a tuple with a different y size. But the above are not the most important, I do not know what is the problem, the code in zinc data set about 950 rounds, the effect is not improved at all, could you please provide a complete code?

QSNZNJING avatar Oct 16 '23 00:10 QSNZNJING

Hi, there. Sorry that I mis-merged the loss functions of ZINC, PCBA, and HIV.

You can replace the following code

y_idx = y == y
loss = loss_fn(logits.to(torch.float32)[y_idx], y.to(torch.float32)[y_idx])

with

loss = loss_fn(logits.squeeze(),y)

for the ZINC dataset. And you will see the correct results.

Here is part of my training log:

image

bdy9527 avatar Feb 23 '24 04:02 bdy9527