-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About getting the received signal val_Y in test_score.py #6
Comments
Thank you for noticing this very subtle aspect - while it seems incorrect at a first look, there is an undocumented behavior of the PyTorch Whenever these functions are used with complex data types they will sample from the unit power complex Gaussian distribution with real and imaginary powers This can be verified by running the following basic snippet:
Should give correct results in both cases, such as:
This can also be verified for It took us a while to realize this ourselves through trial and error. Let us know if you have any more questions. |
Thanks for the reply! I have checked and found that |
Marius, can you add a comment in the code there? Great attention to detail !
Jon
www.jtsense.com
…________________________________
From: Xingyu Zhou ***@***.***>
Sent: Thursday, January 25, 2024 12:09:02 AM
To: utcsilab/score-based-channels ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [utcsilab/score-based-channels] About getting the received signal val_Y in test_score.py (Issue #6)
Thanks for the reply! I have checked and found that torch.randn_like samples from a complex Gaussian distribution with variance 1 when the input is complex-valued. Therefore, the code is correct.
—
Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACCQC23UFTT7WYCELRDINV3YQHZH5AVCNFSM6AAAAABCDZOKV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGQYTMNRUGM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks, added. Also raised the issue on pytorch: pytorch/pytorch#118269. |
您好,非常感谢你的工作!我想知道您的论文中的图里面的Approximate MMSE在SNR下的NMSE的结果要怎么复现,训练和测试都在CDL-C里面。 |
Hello,
Thanks for the excellent work! I have a question about the way you generate val_Y in the following code:
score-based-channels/test_score.py
Lines 120 to 122 in 199792e
I'm wondering whether it should be np.sqrt(local_noise/2) in L122 instead since local_noise is the variance of complex-valued noise. Should the standard deviation of the real and imaginary parts be$\sigma_{\text{pilot}}/\sqrt{2}$ , as shown in test_ml.py:
score-based-channels/test_ml.py
Lines 125 to 129 in 199792e
Thank you.
The text was updated successfully, but these errors were encountered: