Fixing Lab4

This commit is contained in:
2026-09-13 20:04:33 -06:00
parent ca14164f12
commit fef5d2123e
23 changed files with 382 additions and 342 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 KiB

After

Width:  |  Height:  |  Size: 70 KiB

@@ -19,5 +19,5 @@
],
"mode_frequency_threshold": 0.01,
"evaluation_samples": 2500,
"device": "cpu"
"device": "cuda"
}
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
epoch,generator,adversarial,diversity,discriminator
1,3.902446909713745,3.9426742090861002,-0.4022729824066162,4.2679691879311577e-05
2,4.145200756327311,4.184955227152506,-0.397544775835673,1.7615805166618278e-05
3,4.139080067443848,4.17894912923177,-0.3986907406489054,1.4372343609769207e-05
4,4.3337121688842775,4.373950477091471,-0.40238287711143494,1.139676257832131e-05
5,4.437606961568196,4.4788080523173015,-0.4120109644730886,9.15210223950756e-06
1,1.9428215772191684,1.9722177728096644,-0.29396197570165,0.5681033275604248
2,1.4548880971908569,1.4849848041216533,-0.30096709435780844,0.8620665185292562
3,1.3750368096669514,1.4050493458429973,-0.3001254108428955,0.8815570115407307
4,1.3534313842296601,1.3834585751533508,-0.3002719212214152,0.9456387358347574
5,1.3344955165227255,1.3643748208999633,-0.2987930631637573,0.9085257977485657
1 epoch generator adversarial diversity discriminator
2 1 3.902446909713745 1.9428215772191684 3.9426742090861002 1.9722177728096644 -0.4022729824066162 -0.29396197570165 4.2679691879311577e-05 0.5681033275604248
3 2 4.145200756327311 1.4548880971908569 4.184955227152506 1.4849848041216533 -0.397544775835673 -0.30096709435780844 1.7615805166618278e-05 0.8620665185292562
4 3 4.139080067443848 1.3750368096669514 4.17894912923177 1.4050493458429973 -0.3986907406489054 -0.3001254108428955 1.4372343609769207e-05 0.8815570115407307
5 4 4.3337121688842775 1.3534313842296601 4.373950477091471 1.3834585751533508 -0.40238287711143494 -0.3002719212214152 1.139676257832131e-05 0.9456387358347574
6 5 4.437606961568196 1.3344955165227255 4.4788080523173015 1.3643748208999633 -0.4120109644730886 -0.2987930631637573 9.15210223950756e-06 0.9085257977485657
@@ -1,6 +1,6 @@
epoch,generator,adversarial,diversity,discriminator
1,3.9779018229166665,4.181639106241862,-0.4074745655536652,3.138090945431031e-05
2,4.384994900258382,4.590004500834147,-0.410019177420934,1.108799576322781e-05
3,4.442870346577962,4.649945588429769,-0.41415047810872396,8.148233926234146e-06
4,4.501311336263021,4.709003438568115,-0.41538419888814293,6.7271921303472485e-06
5,4.567720675404867,4.779216910552979,-0.42299244691530863,5.819472274743021e-06
1,1.8402496170361837,1.9872969957669575,-0.29409476148287456,0.5767448663711547
2,1.341480024846395,1.4922449136734008,-0.30152977444330853,0.8037996379534403
3,1.2664997817357382,1.4169845746358236,-0.3009695855140686,0.9125254613876342
4,1.2546948420206705,1.4045818595250448,-0.29977403044700623,0.9266978068669637
5,1.2052594385147095,1.3549157900174458,-0.2993127013524373,0.9047481880187989
1 epoch generator adversarial diversity discriminator
2 1 3.9779018229166665 1.8402496170361837 4.181639106241862 1.9872969957669575 -0.4074745655536652 -0.29409476148287456 3.138090945431031e-05 0.5767448663711547
3 2 4.384994900258382 1.341480024846395 4.590004500834147 1.4922449136734008 -0.410019177420934 -0.30152977444330853 1.108799576322781e-05 0.8037996379534403
4 3 4.442870346577962 1.2664997817357382 4.649945588429769 1.4169845746358236 -0.41415047810872396 -0.3009695855140686 8.148233926234146e-06 0.9125254613876342
5 4 4.501311336263021 1.2546948420206705 4.709003438568115 1.4045818595250448 -0.41538419888814293 -0.29977403044700623 6.7271921303472485e-06 0.9266978068669637
6 5 4.567720675404867 1.2052594385147095 4.779216910552979 1.3549157900174458 -0.42299244691530863 -0.2993127013524373 5.819472274743021e-06 0.9047481880187989
@@ -1,6 +1,6 @@
epoch,generator,adversarial,diversity,discriminator
1,3.792231286239624,3.792231286239624,-0.39822079056104026,5.601679666045432e-05
2,3.7167933046976724,3.7167933046976724,-0.38705200486183167,2.9127169354857565e-05
3,3.774656072998047,3.774656072998047,-0.3904325690587362,2.4593643052503468e-05
4,4.0028360649108885,4.0028360649108885,-0.39604260533650715,1.812106814662305e-05
5,4.161207312520345,4.161207312520345,-0.404033615175883,1.4115302633338919e-05
1,1.8845427894274394,1.8845427894274394,-0.2938156750679016,0.6103333305994669
2,1.467399939886729,1.467399939886729,-0.3004071984608968,0.8552583735783895
3,1.3906279939015707,1.3906279939015707,-0.3001615686416626,0.9186650776545207
4,1.3625147614161173,1.3625147614161173,-0.2994904435475667,0.9339748060862223
5,1.3512904654184976,1.3512904654184976,-0.29837757102648416,0.917125739256541
1 epoch generator adversarial diversity discriminator
2 1 3.792231286239624 1.8845427894274394 3.792231286239624 1.8845427894274394 -0.39822079056104026 -0.2938156750679016 5.601679666045432e-05 0.6103333305994669
3 2 3.7167933046976724 1.467399939886729 3.7167933046976724 1.467399939886729 -0.38705200486183167 -0.3004071984608968 2.9127169354857565e-05 0.8552583735783895
4 3 3.774656072998047 1.3906279939015707 3.774656072998047 1.3906279939015707 -0.3904325690587362 -0.3001615686416626 2.4593643052503468e-05 0.9186650776545207
5 4 4.0028360649108885 1.3625147614161173 4.0028360649108885 1.3625147614161173 -0.39604260533650715 -0.2994904435475667 1.812106814662305e-05 0.9339748060862223
6 5 4.161207312520345 1.3512904654184976 4.161207312520345 1.3512904654184976 -0.404033615175883 -0.29837757102648416 1.4115302633338919e-05 0.917125739256541
@@ -1,6 +1,6 @@
epoch,generator,adversarial,diversity,discriminator
1,4.073459280141194,4.48742034072876,-0.4139610550562541,2.2277594858314842e-05
2,4.556306339263916,4.980417476145426,-0.4241111308892568,6.92474058305379e-06
3,4.663601414998372,5.0912053082784015,-0.42760391337076825,4.824752171892518e-06
4,4.601830291493734,5.031373355865479,-0.42954305254618325,4.1199866602255495e-06
5,4.665722238413493,5.104604846191406,-0.4388826152801514,3.713102867671599e-06
1,1.698524040857951,1.99391873254776,-0.295394695409139,0.6109893366177876
2,1.1882508003234864,1.4905863542874653,-0.3023355525970459,0.8262079038302104
3,1.1038317825317383,1.4053670434633891,-0.3015352600415548,0.8900910706837972
4,1.0793432936350504,1.379725065612793,-0.30038177541097005,0.9296226150830587
5,1.0750859638214112,1.3745220242182414,-0.2994360567092896,0.9623658214886983
1 epoch generator adversarial diversity discriminator
2 1 4.073459280141194 1.698524040857951 4.48742034072876 1.99391873254776 -0.4139610550562541 -0.295394695409139 2.2277594858314842e-05 0.6109893366177876
3 2 4.556306339263916 1.1882508003234864 4.980417476145426 1.4905863542874653 -0.4241111308892568 -0.3023355525970459 6.92474058305379e-06 0.8262079038302104
4 3 4.663601414998372 1.1038317825317383 5.0912053082784015 1.4053670434633891 -0.42760391337076825 -0.3015352600415548 4.824752171892518e-06 0.8900910706837972
5 4 4.601830291493734 1.0793432936350504 5.031373355865479 1.379725065612793 -0.42954305254618325 -0.30038177541097005 4.1199866602255495e-06 0.9296226150830587
6 5 4.665722238413493 1.0750859638214112 5.104604846191406 1.3745220242182414 -0.4388826152801514 -0.2994360567092896 3.713102867671599e-06 0.9623658214886983
Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

+5 -5
View File
@@ -1,6 +1,6 @@
Configuration,Lambda diversity,mode_count,normalized_entropy,classifier_confidence,feature_diversity,within_class_diversity,Recovery seconds
Collapsed start,,1,0.010357953608036041,0.9805793166160583,16.11749267578125,11.458220958709717,
lambda=0,0.0,1,0.021068770438432693,0.9541524648666382,16.436365127563477,11.539350509643555,775.4761435985565
lambda=0.1,0.1,2,0.05791272968053818,0.9331758618354797,16.686689376831055,11.85418701171875,772.15576171875
lambda=0.5,0.5,2,0.052982352674007416,0.9251078963279724,17.057252883911133,12.603004455566406,753.808944940567
lambda=1,1.0,2,0.04722726345062256,0.9086208939552307,17.2882137298584,13.533077716827393,775.8287467956543
Collapsed start,,2,0.36685988306999207,0.9706274271011353,32.05898666381836,25.954302549362183,
lambda=0,0.0,10,0.9840676784515381,0.9123238325119019,50.957305908203125,37.81598720550537,18.872541427612305
lambda=0.1,0.1,10,0.9851677417755127,0.9086157083511353,50.7574577331543,37.948602485656735,18.69113826751709
lambda=0.5,0.5,10,0.9865411520004272,0.9114605188369751,50.256011962890625,37.34092845916748,18.764385223388672
lambda=1,1.0,10,0.9875771999359131,0.9121829867362976,50.82931900024414,38.14074840545654,18.40188217163086
1 Configuration Lambda diversity mode_count normalized_entropy classifier_confidence feature_diversity within_class_diversity Recovery seconds
2 Collapsed start 1 2 0.010357953608036041 0.36685988306999207 0.9805793166160583 0.9706274271011353 16.11749267578125 32.05898666381836 11.458220958709717 25.954302549362183
3 lambda=0 0.0 1 10 0.021068770438432693 0.9840676784515381 0.9541524648666382 0.9123238325119019 16.436365127563477 50.957305908203125 11.539350509643555 37.81598720550537 775.4761435985565 18.872541427612305
4 lambda=0.1 0.1 2 10 0.05791272968053818 0.9851677417755127 0.9331758618354797 0.9086157083511353 16.686689376831055 50.7574577331543 11.85418701171875 37.948602485656735 772.15576171875 18.69113826751709
5 lambda=0.5 0.5 2 10 0.052982352674007416 0.9865411520004272 0.9251078963279724 0.9114605188369751 17.057252883911133 50.256011962890625 12.603004455566406 37.34092845916748 753.808944940567 18.764385223388672
6 lambda=1 1.0 2 10 0.04722726345062256 0.9875771999359131 0.9086208939552307 0.9121829867362976 17.2882137298584 50.82931900024414 13.533077716827393 38.14074840545654 775.8287467956543 18.40188217163086
@@ -2,10 +2,10 @@
\toprule
Configuration & $\lambda_{div}$ & Modes & Entropy & Confidence & Feature diversity & Within-class diversity \\
\midrule
Collapsed start & NaN & 1 & 0.010 & 0.981 & 16.117 & 11.458 \\
lambda=0 & 0.000 & 1 & 0.021 & 0.954 & 16.436 & 11.539 \\
lambda=0.1 & 0.100 & 2 & 0.058 & 0.933 & 16.687 & 11.854 \\
lambda=0.5 & 0.500 & 2 & 0.053 & 0.925 & 17.057 & 12.603 \\
lambda=1 & 1.000 & 2 & 0.047 & 0.909 & 17.288 & 13.533 \\
Collapsed start & NaN & 2 & 0.367 & 0.971 & 32.059 & 25.954 \\
lambda=0 & 0.000 & 10 & 0.984 & 0.912 & 50.957 & 37.816 \\
lambda=0.1 & 0.100 & 10 & 0.985 & 0.909 & 50.757 & 37.949 \\
lambda=0.5 & 0.500 & 10 & 0.987 & 0.911 & 50.256 & 37.341 \\
lambda=1 & 1.000 & 10 & 0.988 & 0.912 & 50.829 & 38.141 \\
\bottomrule
\end{tabular}