Finished gradient oscillation slide

This commit is contained in:
Andreas Tsouchlos 2023-01-25 13:26:20 +01:00
parent a894478c86
commit e817b94a2e
4 changed files with 875 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,205 @@
,grad_h_vars,bit_error
0,1.1469145950016066,0.0
1,0.7349649597670473,0.0
2,0.41034980410664235,0.0
3,1.5936176557962956,0.0
4,1.2556306230799523,0.0
5,0.9501079929593809,0.0
6,1.0608527311485363,0.0
7,0.9065636992308471,0.0
8,0.7130161266399191,0.0
9,0.895826670845081,0.0
10,1.5330042130453543,0.0
11,0.8781452062655208,0.0
12,0.6859253819091313,0.0
13,0.8494837401995201,0.0
14,1.7298258920316718,0.0
15,0.5441116768013853,0.0
16,1.0870164877307138,0.0
17,0.8776332266276086,0.0
18,2.3446586396116924,0.0
19,1.381488362354177,0.0
20,1.8361912485093685,0.0
21,1.176340804980718,0.0
22,0.30881298873064295,0.0
23,1.046505970974569,0.0
24,0.6542139798501604,0.0
25,0.9358783438098642,0.0
26,0.9145146314388769,0.0
27,0.9325624236784603,0.0
28,1.000558264485271,0.0
29,1.1668018406385636,0.0
30,0.9604669615462674,0.0
31,0.8080509629925774,0.0
32,0.31707179921145534,1.0
33,0.7246558632787823,0.0
34,0.5621649892107863,0.0
35,0.7694807648719255,0.0
36,0.6610013498912781,0.0
37,0.7736375435823932,0.0
38,0.5562601732655184,0.0
39,0.18780885479261286,1.0
40,1.7171254078500968,0.0
41,0.5223816647948951,0.0
42,0.8414436097078756,0.0
43,0.891196054076969,0.0
44,0.7485078461673225,0.0
45,1.04287532172377,0.0
46,0.10396015745641062,1.0
47,0.4441693122072358,0.0
48,1.1069364968607116,0.0
49,0.9872887700316798,0.0
50,0.7821904177749635,0.0
51,0.9078965395457048,0.0
52,1.2804728966125465,0.0
53,0.8327949586188865,0.0
54,1.052227851986963,0.0
55,0.9063828067361694,0.0
56,0.952160447221664,0.0
57,1.0997592704590031,0.0
58,0.43550867124864345,0.0
59,2.0157240264588667,0.0
60,1.3813325115541275,0.0
61,1.7431077364927987,0.0
62,1.1847336441743674,0.0
63,1.5988112534577419,0.0
64,0.9539590259773287,0.0
65,0.7269923809541012,0.0
66,0.8398432723726956,0.0
67,1.409882546338875,0.0
68,0.9013351730976709,0.0
69,1.3941824623052859,0.0
70,0.36277376770946385,0.0
71,0.7629017682242774,0.0
72,1.3614744362633528,0.0
73,0.8404837668913099,0.0
74,1.1332131299535815,0.0
75,1.8141339310834872,0.0
76,0.9198980762091067,0.0
77,0.9487046055630209,0.0
78,1.401111613370583,0.0
79,1.151639175635881,0.0
80,0.38790767209567306,0.0
81,1.105773950986082,0.0
82,0.8352297990223916,0.0
83,0.8665562954089628,0.0
84,1.4868580119778607,0.0
85,0.9211843020326788,0.0
86,1.1689944009257842,0.0
87,1.0068677015448033,0.0
88,1.0836181136301897,0.0
89,0.9235435526128809,0.0
90,0.6707729475015448,0.0
91,0.5380953446627244,0.0
92,0.9647446516243714,0.0
93,0.7517372755928693,0.0
94,0.946955187983692,0.0
95,1.3954397761745327,0.0
96,0.5352161356828059,0.0
97,1.1072791988470319,0.0
98,1.4240110977445817,0.0
99,1.0902836656382533,0.0
100,0.9945863889695074,0.0
101,1.5189575775894155,0.0
102,0.895129990068306,0.0
103,1.3025913004882157,0.0
104,0.6824840943770301,0.0
105,0.5577623593934801,0.0
106,0.5829910630128274,0.0
107,1.300606650522138,0.0
108,0.9758395820957634,0.0
109,0.5011535319391117,0.0
110,0.847385443182737,0.0
111,1.6053646604821943,0.0
112,0.7479584114380543,0.0
113,0.7154358159984203,0.0
114,1.2809985907651924,0.0
115,0.8500925174070807,0.0
116,0.9422984104715906,0.0
117,1.0144193081149928,0.0
118,0.8928703387803261,0.0
119,0.9135384927123353,0.0
120,1.1114031211227495,0.0
121,0.5009132448338548,0.0
122,1.17922019373665,0.0
123,0.8808257592555049,0.0
124,0.4736104892052034,0.0
125,0.6125500836968003,0.0
126,0.5798464193671122,0.0
127,0.7622448243391861,0.0
128,1.2639682341841492,0.0
129,1.397033047299318,0.0
130,0.9091683804677143,0.0
131,1.2147541611710555,0.0
132,0.2447114380129915,1.0
133,1.4276638744510006,0.0
134,1.6500906242808973,0.0
135,0.7097495271906855,0.0
136,0.6070289018226261,0.0
137,1.707276208332383,0.0
138,1.5552499418106627,0.0
139,0.9026306223185824,0.0
140,0.44266393218454547,0.0
141,0.7572433991531969,0.0
142,0.9938527639391456,0.0
143,1.629492044830871,0.0
144,0.7995704002918802,0.0
145,0.7809987777608669,0.0
146,0.848733412232679,0.0
147,0.3222830373637598,0.0
148,1.5543660011458496,0.0
149,1.653926092422478,0.0
150,1.281204520778369,0.0
151,0.9815388578918458,0.0
152,1.1368563793597533,0.0
153,1.3142794996072125,0.0
154,1.3986851636622872,0.0
155,0.3012765656054378,0.0
156,0.596092854844867,0.0
157,0.8857431745997897,0.0
158,1.2543247875702626,0.0
159,1.1601351303300462,0.0
160,0.9757095780886789,0.0
161,0.5118576863239332,0.0
162,0.3278302376347513,0.0
163,0.7739041398840416,0.0
164,1.348158158191261,0.0
165,0.9373253418030763,0.0
166,0.8407140796905404,0.0
167,0.7701902562530398,0.0
168,0.7373339357864163,0.0
169,0.6322137476990133,0.0
170,0.49406238720934886,0.0
171,1.1373885990027888,0.0
172,0.776329392554151,0.0
173,1.5799647321616117,0.0
174,0.9340163264984314,0.0
175,1.051485368808022,0.0
176,1.4547411595091289,0.0
177,2.3122310673514046,0.0
178,0.4431898892258028,0.0
179,0.6602474324735155,0.0
180,1.0284972218659039,0.0
181,0.7079467538460712,0.0
182,0.6992783811504699,0.0
183,1.6858177272412607,0.0
184,0.8646574331609789,0.0
185,0.6073345697134169,0.0
186,1.7225604717078735,0.0
187,0.9394537943330523,0.0
188,0.8585445078403137,0.0
189,1.1868247620624086,0.0
190,0.9530922847239147,0.0
191,0.7991154274895775,0.0
192,0.7751256589398754,0.0
193,1.995312237243617,0.0
194,1.0583299321954904,0.0
195,1.0741257191353668,0.0
196,1.0360387420102335,0.0
197,1.6726289917395618,0.0
198,1.5154012159268524,0.0
199,0.6079634018868354,0.0
200,1.1137919258655136,0.0
201,0.34364650124488877,0.0
202,0.8982288426167987,0.0
203,0.7158776862928066,0.0
1 grad_h_vars bit_error
2 0 1.1469145950016066 0.0
3 1 0.7349649597670473 0.0
4 2 0.41034980410664235 0.0
5 3 1.5936176557962956 0.0
6 4 1.2556306230799523 0.0
7 5 0.9501079929593809 0.0
8 6 1.0608527311485363 0.0
9 7 0.9065636992308471 0.0
10 8 0.7130161266399191 0.0
11 9 0.895826670845081 0.0
12 10 1.5330042130453543 0.0
13 11 0.8781452062655208 0.0
14 12 0.6859253819091313 0.0
15 13 0.8494837401995201 0.0
16 14 1.7298258920316718 0.0
17 15 0.5441116768013853 0.0
18 16 1.0870164877307138 0.0
19 17 0.8776332266276086 0.0
20 18 2.3446586396116924 0.0
21 19 1.381488362354177 0.0
22 20 1.8361912485093685 0.0
23 21 1.176340804980718 0.0
24 22 0.30881298873064295 0.0
25 23 1.046505970974569 0.0
26 24 0.6542139798501604 0.0
27 25 0.9358783438098642 0.0
28 26 0.9145146314388769 0.0
29 27 0.9325624236784603 0.0
30 28 1.000558264485271 0.0
31 29 1.1668018406385636 0.0
32 30 0.9604669615462674 0.0
33 31 0.8080509629925774 0.0
34 32 0.31707179921145534 1.0
35 33 0.7246558632787823 0.0
36 34 0.5621649892107863 0.0
37 35 0.7694807648719255 0.0
38 36 0.6610013498912781 0.0
39 37 0.7736375435823932 0.0
40 38 0.5562601732655184 0.0
41 39 0.18780885479261286 1.0
42 40 1.7171254078500968 0.0
43 41 0.5223816647948951 0.0
44 42 0.8414436097078756 0.0
45 43 0.891196054076969 0.0
46 44 0.7485078461673225 0.0
47 45 1.04287532172377 0.0
48 46 0.10396015745641062 1.0
49 47 0.4441693122072358 0.0
50 48 1.1069364968607116 0.0
51 49 0.9872887700316798 0.0
52 50 0.7821904177749635 0.0
53 51 0.9078965395457048 0.0
54 52 1.2804728966125465 0.0
55 53 0.8327949586188865 0.0
56 54 1.052227851986963 0.0
57 55 0.9063828067361694 0.0
58 56 0.952160447221664 0.0
59 57 1.0997592704590031 0.0
60 58 0.43550867124864345 0.0
61 59 2.0157240264588667 0.0
62 60 1.3813325115541275 0.0
63 61 1.7431077364927987 0.0
64 62 1.1847336441743674 0.0
65 63 1.5988112534577419 0.0
66 64 0.9539590259773287 0.0
67 65 0.7269923809541012 0.0
68 66 0.8398432723726956 0.0
69 67 1.409882546338875 0.0
70 68 0.9013351730976709 0.0
71 69 1.3941824623052859 0.0
72 70 0.36277376770946385 0.0
73 71 0.7629017682242774 0.0
74 72 1.3614744362633528 0.0
75 73 0.8404837668913099 0.0
76 74 1.1332131299535815 0.0
77 75 1.8141339310834872 0.0
78 76 0.9198980762091067 0.0
79 77 0.9487046055630209 0.0
80 78 1.401111613370583 0.0
81 79 1.151639175635881 0.0
82 80 0.38790767209567306 0.0
83 81 1.105773950986082 0.0
84 82 0.8352297990223916 0.0
85 83 0.8665562954089628 0.0
86 84 1.4868580119778607 0.0
87 85 0.9211843020326788 0.0
88 86 1.1689944009257842 0.0
89 87 1.0068677015448033 0.0
90 88 1.0836181136301897 0.0
91 89 0.9235435526128809 0.0
92 90 0.6707729475015448 0.0
93 91 0.5380953446627244 0.0
94 92 0.9647446516243714 0.0
95 93 0.7517372755928693 0.0
96 94 0.946955187983692 0.0
97 95 1.3954397761745327 0.0
98 96 0.5352161356828059 0.0
99 97 1.1072791988470319 0.0
100 98 1.4240110977445817 0.0
101 99 1.0902836656382533 0.0
102 100 0.9945863889695074 0.0
103 101 1.5189575775894155 0.0
104 102 0.895129990068306 0.0
105 103 1.3025913004882157 0.0
106 104 0.6824840943770301 0.0
107 105 0.5577623593934801 0.0
108 106 0.5829910630128274 0.0
109 107 1.300606650522138 0.0
110 108 0.9758395820957634 0.0
111 109 0.5011535319391117 0.0
112 110 0.847385443182737 0.0
113 111 1.6053646604821943 0.0
114 112 0.7479584114380543 0.0
115 113 0.7154358159984203 0.0
116 114 1.2809985907651924 0.0
117 115 0.8500925174070807 0.0
118 116 0.9422984104715906 0.0
119 117 1.0144193081149928 0.0
120 118 0.8928703387803261 0.0
121 119 0.9135384927123353 0.0
122 120 1.1114031211227495 0.0
123 121 0.5009132448338548 0.0
124 122 1.17922019373665 0.0
125 123 0.8808257592555049 0.0
126 124 0.4736104892052034 0.0
127 125 0.6125500836968003 0.0
128 126 0.5798464193671122 0.0
129 127 0.7622448243391861 0.0
130 128 1.2639682341841492 0.0
131 129 1.397033047299318 0.0
132 130 0.9091683804677143 0.0
133 131 1.2147541611710555 0.0
134 132 0.2447114380129915 1.0
135 133 1.4276638744510006 0.0
136 134 1.6500906242808973 0.0
137 135 0.7097495271906855 0.0
138 136 0.6070289018226261 0.0
139 137 1.707276208332383 0.0
140 138 1.5552499418106627 0.0
141 139 0.9026306223185824 0.0
142 140 0.44266393218454547 0.0
143 141 0.7572433991531969 0.0
144 142 0.9938527639391456 0.0
145 143 1.629492044830871 0.0
146 144 0.7995704002918802 0.0
147 145 0.7809987777608669 0.0
148 146 0.848733412232679 0.0
149 147 0.3222830373637598 0.0
150 148 1.5543660011458496 0.0
151 149 1.653926092422478 0.0
152 150 1.281204520778369 0.0
153 151 0.9815388578918458 0.0
154 152 1.1368563793597533 0.0
155 153 1.3142794996072125 0.0
156 154 1.3986851636622872 0.0
157 155 0.3012765656054378 0.0
158 156 0.596092854844867 0.0
159 157 0.8857431745997897 0.0
160 158 1.2543247875702626 0.0
161 159 1.1601351303300462 0.0
162 160 0.9757095780886789 0.0
163 161 0.5118576863239332 0.0
164 162 0.3278302376347513 0.0
165 163 0.7739041398840416 0.0
166 164 1.348158158191261 0.0
167 165 0.9373253418030763 0.0
168 166 0.8407140796905404 0.0
169 167 0.7701902562530398 0.0
170 168 0.7373339357864163 0.0
171 169 0.6322137476990133 0.0
172 170 0.49406238720934886 0.0
173 171 1.1373885990027888 0.0
174 172 0.776329392554151 0.0
175 173 1.5799647321616117 0.0
176 174 0.9340163264984314 0.0
177 175 1.051485368808022 0.0
178 176 1.4547411595091289 0.0
179 177 2.3122310673514046 0.0
180 178 0.4431898892258028 0.0
181 179 0.6602474324735155 0.0
182 180 1.0284972218659039 0.0
183 181 0.7079467538460712 0.0
184 182 0.6992783811504699 0.0
185 183 1.6858177272412607 0.0
186 184 0.8646574331609789 0.0
187 185 0.6073345697134169 0.0
188 186 1.7225604717078735 0.0
189 187 0.9394537943330523 0.0
190 188 0.8585445078403137 0.0
191 189 1.1868247620624086 0.0
192 190 0.9530922847239147 0.0
193 191 0.7991154274895775 0.0
194 192 0.7751256589398754 0.0
195 193 1.995312237243617 0.0
196 194 1.0583299321954904 0.0
197 195 1.0741257191353668 0.0
198 196 1.0360387420102335 0.0
199 197 1.6726289917395618 0.0
200 198 1.5154012159268524 0.0
201 199 0.6079634018868354 0.0
202 200 1.1137919258655136 0.0
203 201 0.34364650124488877 0.0
204 202 0.8982288426167987 0.0
205 203 0.7158776862928066 0.0

View File

@ -646,7 +646,7 @@ Output $\boldsymbol{\hat{x}}$
\end{tikzpicture}
\end{minipage}
\caption{Internal variables of proximal decoder as a function of $k$\footnotemark}
\caption{Internal variables of proximal decoder as a function of $k$ ($n=7$)\footnotemark}
\footnotetext{A single decoding is shown, using the BCH$\left( 7,4 \right) $ code;
$\gamma = 0.05, \omega = 0.05, E_b / N_0 = \SI{5}{dB}$}
@ -657,12 +657,78 @@ Output $\boldsymbol{\hat{x}}$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[t]
\frametitle{Proximal Decoder: Oscillation of $\nabla h\left( \boldsymbol{x} \right) $}
\setcounter{footnote}{0}
\begin{itemize}
\item For larger $n$, the Gradient itself starts to oscillate
\item The Amplitude of the oscillation seems to be highly correlated
with the probability of a bit error
\end{itemize}
\todo{Add grad oscillation plot}
\todo{Fix $K=200\ne 400$}
\begin{figure}
\centering
\begin{subfigure}[c]{0.5\textwidth}
\centering
\begin{tikzpicture}[scale = 0.85]
\begin{axis}[
grid=both,
xlabel={$k$},
width=8cm,
height=3cm,
scale only axis,
]
\addplot +[mark=none, line width=0.7pt]
table [col sep=comma, x=k, y=comb_r_s_0]
{res/proximal/extreme_components_20433484_combined.csv};
\addplot +[mark=none]
table [col sep=comma, x=k, y=grad_L_0]
{res/proximal/extreme_components_20433484_combined.csv};
\addplot +[mark=none]
table [col sep=comma, x=k, y=grad_h_0]
{res/proximal/extreme_components_20433484_combined.csv};
\addlegendentry{est}
\addlegendentry{$\nabla L$}
\addlegendentry{$\nabla h$}
\end{axis}
\end{tikzpicture}
\caption{Internal variables of proximal decoder as a function of k
($n=204$)\footnotemark}
\end{subfigure}%
\begin{subfigure}[c]{0.5\textwidth}
\centering
\begin{tikzpicture}[scale = 0.85]
\begin{axis}[
point meta min = -1,
point meta max = 1,
grid=both,
xlabel={$Var\left( \nabla h\left( \boldsymbol{x} \right) \right) $},
ylabel={bit error (bool)},
ytick={0, 1},
width=8cm,
height=3cm,
scale only axis,
% colormap/viridis,
]
\addplot [Brown, only marks,]
table [col sep=comma, x=grad_h_vars, y=bit_error]
{res/proximal/extreme_components_20433484_variance.csv};
\end{axis}
\end{tikzpicture}
\caption{Corellation between bit error and amplitude of oscillation}
\end{subfigure}
\end{figure}
\footnotetext{A single decoding is shown, using a (3,6) regular LDPC Code
with $n=204, k=102$ \cite[\text{204.33.484}]{mackay_enc};
$\gamma = 0.05, \omega = 0.05, E_b / N_0 = \SI{5}{dB}$}
\end{frame}