yzshi5 / GM-GANO

Codes for "Broadband Ground Motion Synthesis via Generative Adversarial Neural Operators: Development and Validation"s
6 stars 0 forks source link

The training issue #7

Open mayang113 opened 7 months ago

mayang113 commented 7 months ago

屏幕截图 2024-04-26 124526 屏幕截图 2024-04-26 124619 Hello, I would like to ask if this training process is normal? How good is the value of loss_G to represent good results?

yzshi5 commented 7 months ago

From our experience, at the beginning of training, we may encounter abnormal loss, but the loss converges along the training. That is not a problem.

Besides, I updated the code of GANO_model.py, you can use the kernel functional (instead of mean) in the last layer of discriminator, the loss will be more stable. However, we didn't observe the much improvement of the performance with the changed functional.

image

mayang113 commented 7 months ago

屏幕截图 2024-04-26 134942 Thank you for your response. Is the current value reasonable? I have 8100 time series data with a batch size of 64.

yzshi5 commented 7 months ago

It's hard to say whether the loss value is reasonable or not, since it can be quite different for different datasets. The loss of GANO is not well explained, (claimed by the authors of GANO), but it can indeed learn the mapping. I would suggest not caring too much about the loss. Just check the loss for the last few epochs.

mayang113 commented 7 months ago

屏幕截图 2024-04-26 140539 Ok thanks for the reply this is my last question , this is my attr_file I just need to make sure that the order of the rows matches the order in the data_file? Do the columns need to be in order? Also does the name of this seismic event need to match the data_file?

yzshi5 commented 7 months ago

Yes, order of rows must match the order of data. That's is the only requirement.