# **meeting 02/26**
**Advisor: Prof. Chih-Yu Wang \
Presenter: Shao-Heng Chen \
Date: Feb 26, 2023**
<!-- Chih-Yu Wang -->
<!-- Wei-Ho Chung -->
## **Bugs**
The reason why the ```average worst-case MSE``` doesn't match is that initially, I didn't set the variance of the transmit signals to ```1```; instead, I first set it to ```0.01``` and ```2.76```, which resulted in a drift in the ```MSE``` values.

## **Validate self-identity**

```shell
(sb3) C:\Users\Paul\Downloads\RIS-MISO-DRL>python torch_env.py
----------------------------------------------------------------
Using cuda device
Wrapping the env with a `Monitor` wrapper
Wrapping the env in a DummyVecEnv.
#0
#1000
#2000
#3000
#4000
#5000
#6000
#7000
#8000
#9000
----------------------------------------------------------------
['a']
content:
[[ 1.0000535 -0.0012 ]
[-0.0012 1.0000535]]
type: <class 'numpy.ndarray'>
dtype: float32
shape: (2, 2)
duration: 3.9012 sec
```
## **Ns-to-MSE**
<img src='https://hackmd.io/_uploads/BJOboG7ha.png
' width=70% weight=50%>
<img src='https://hackmd.io/_uploads/BJLxozQna.png' width=50% weight=50%>
<img src='https://hackmd.io/_uploads/HJXRcGXh6.png' width=50% weight=50%>
### **Simulate MSE Matrix**
#### ```2-16-16```
```shell
--------------------------------
optimal of (2, 16, 16) for use 0:
mean: -0.19783394530415535
std: 0.19100397863851418
max: -0.0010789036750793457
min: -1.3816077709197998
--------------------------------
--------------------------------
optimal of (2, 16, 16) for use 1:
mean: -0.24249206230044365
std: 0.20890119560491932
max: -0.008727550506591797
min: -0.9900109767913818
--------------------------------
```
#### ```2-16-36```
```shell
--------------------------------
optimal of (2, 16, 36) for use 0:
mean: -0.6484872534871101
std: 0.5642919498259411
max: -0.009720802307128906
min: -2.958340644836426
--------------------------------
--------------------------------
optimal of (2, 16, 36) for use 1:
mean: -0.46637788563966753
std: 0.39732000940264617
max: -0.008226752281188965
min: -2.2563271522521973
--------------------------------
```
#### ```2-16-64```
```shell
--------------------------------
optimal of (2, 16, 64) for use 0:
mean: -2.424696449637413
std: 1.6707177393461499
max: -0.12051200866699219
min: -9.191495895385742
--------------------------------
--------------------------------
optimal of (2, 16, 64) for use 1:
mean: -2.34962482586503
std: 1.7526360197751047
max: -0.11858093738555908
min: -8.728302001953125
--------------------------------
```
#### ```2-16-100```
```shell
--------------------------------
optimal of (2, 16, 100) for use 0:
mean: -4.236481530219317
std: 3.2827905662822485
max: -0.3023524880409241
min: -18.922863006591797
--------------------------------
--------------------------------
optimal of (2, 16, 100) for use 1:
mean: -3.984219034612179
std: 2.933253084504818
max: -0.39749640226364136
min: -18.828039169311523
--------------------------------
```
### **Simulate Signal Transmission**
#### ```2-16-16```
```shell
--------------------------------
optimal of (2, 16, 16) for use 0:
mean: -0.1975551559534506
std: 0.22238462349439905
max: -0.0006374144577421248
min: -1.4351381063461304
--------------------------------
--------------------------------
optimal of (2, 16, 16) for use 1:
mean: -0.22365078763279597
std: 0.21653519832210508
max: -0.0013076391769573092
min: -1.5206626653671265
--------------------------------
```
#### ```2-16-36```
```shell
--------------------------------
optimal of (2, 16, 36) for use 0:
mean: -0.7127358504908625
std: 0.7901334736587505
max: -0.003781953826546669
min: -5.71054744720459
--------------------------------
--------------------------------
optimal of (2, 16, 36) for use 1:
mean: -0.45777424493164287
std: 0.48103707792801714
max: -0.0011238012230023742
min: -3.0755436420440674
--------------------------------
```
#### ```2-16-64```
```shell
--------------------------------
optimal of (2, 16, 64) for use 0:
mean: -2.336863024570048
std: 2.1776043868698003
max: -0.023486226797103882
min: -9.737071990966797
--------------------------------
--------------------------------
optimal of (2, 16, 64) for use 1:
mean: -2.339751576986164
std: 2.3039875918097423
max: -0.03819342330098152
min: -15.445615768432617
--------------------------------
```
#### ```2-16-100```
```shell
--------------------------------
optimal of (2, 16, 100) for use 0:
mean: -4.9666298127174375
std: 5.6269153679406925
max: -0.07591043412685394
min: -34.02420425415039
--------------------------------
--------------------------------
optimal of (2, 16, 100) for use 1:
mean: -4.223223418369889
std: 4.268021096705496
max: -0.058111704885959625
min: -25.209959030151367
--------------------------------
```