@@ -1911,65 +1911,6 @@ def setBoxColors(bp, color_count=2):
1911
1911
]['accuracy-error' ].to_numpy ()) for k in nn_names [1 :]]
1912
1912
override_plotsize = False
1913
1913
group_size = 2
1914
-
1915
- """
1916
- generate_summary_boxplot(X, Y, labels, barlabels, xlabels, ylabel, title, filename, ylimit, xlabel, Z, override_plotsize, group_size)
1917
- # ECCENTRICITY PLOT TEST
1918
-
1919
- for eccentricity in (0.0, 10.0, 15.0, 20.0):
1920
- X = flatten_np(pd_analysis_acc.loc[
1921
- (pd_analysis_acc['plugin'] == 'vanilla') &\
1922
- (pd_analysis_acc['eccentricity'] == eccentricity)
1923
- ]['accuracy-error'].to_numpy())
1924
- Y = flatten_np(pd_analysis_acc.loc[
1925
- (pd_analysis_acc['plugin'] == nn_names[0]) &\
1926
- (pd_analysis_acc['eccentricity'] == eccentricity)
1927
- ]['accuracy-error'].to_numpy())
1928
- labels = np.concatenate((["Native"], [xlabel_dict[k] for k in nn_names]))
1929
- barlabels = np.concatenate((["Native"], [barlabel_dict[k] for k in nn_names_ecc]))
1930
- #xlabels = ['Native', 'EllSeg', 'ESFnet', 'RITnet Pupil']
1931
- xlabels = np.concatenate((["Native"], [xlabel_dict[k] for k in nn_names_ecc]))
1932
- ylabel = 'Accuracy Error (degrees)'
1933
- title = 'Gaze Accuracy Errors Across Neural Networks (Ecc {})'.format(eccentricity)
1934
- filename = '{}Generalized Accuracy Ecc {} TRUE.png'.format(figout_loc, eccentricity)
1935
- ylimit = None
1936
- xlabel = 'Method'
1937
- Z = [flatten_np(pd_analysis_acc.loc[
1938
- (pd_analysis_acc['plugin'] == k) &\
1939
- (pd_analysis_acc['eccentricity'] == eccentricity)
1940
- ]['accuracy-error'].to_numpy()) for k in nn_names_ecc[1:]]
1941
- override_plotsize = False
1942
- group_size = 2
1943
-
1944
- generate_summary_boxplot(X, Y, labels, barlabels, xlabels, ylabel, title, filename, ylimit, xlabel, Z, override_plotsize, group_size)
1945
-
1946
- for eccentricity in (0.0, 10.0, 15.0, 20.0):
1947
- X = flatten_np(pd_analysis_prec.loc[
1948
- (pd_analysis_prec['plugin'] == 'vanilla') &\
1949
- (pd_analysis_prec['eccentricity'] == eccentricity)
1950
- ]['precision-error'].to_numpy())
1951
- Y = flatten_np(pd_analysis_prec.loc[
1952
- (pd_analysis_prec['plugin'] == nn_names_ecc[0]) &\
1953
- (pd_analysis_prec['eccentricity'] == eccentricity)
1954
- ]['precision-error'].to_numpy())
1955
- labels = np.concatenate((["Native"], [xlabel_dict[k] for k in nn_names]))
1956
- barlabels = np.concatenate((["Native"], [barlabel_dict[k] for k in nn_names_ecc]))
1957
- #xlabels = ['Native', 'EllSeg', 'ESFnet', 'RITnet Pupil']
1958
- xlabels = np.concatenate((["Native"], [xlabel_dict[k] for k in nn_names_ecc]))
1959
- ylabel = 'Precision Error (degrees)'
1960
- title = 'Gaze Precision Errors Across Neural Networks (Ecc {})'.format(eccentricity)
1961
- filename = '{}Generalized Precision Ecc {} TRUE.png'.format(figout_loc, eccentricity)
1962
- ylimit = None
1963
- xlabel = 'Method'
1964
- Z = [flatten_np(pd_analysis_prec.loc[
1965
- (pd_analysis_prec['plugin'] == k) &\
1966
- (pd_analysis_prec['eccentricity'] == eccentricity)
1967
- ]['precision-error'].to_numpy()) for k in nn_names_ecc[1:]]
1968
- override_plotsize = False
1969
- group_size = 2
1970
-
1971
- generate_summary_boxplot(X, Y, labels, barlabels, xlabels, ylabel, title, filename, ylimit, xlabel, Z, override_plotsize, group_size)
1972
- """
1973
1914
1974
1915
for resolution in (192 , 400 ):
1975
1916
fname = f'{ figout_loc } /out_data_robustness_{ resolution } .csv'
@@ -2075,31 +2016,6 @@ def setBoxColors(bp, color_count=2):
2075
2016
writer .writerow ([subject , 'ESFnet (Embedded Pupil)' ,np .nanmean (ESFnetEmbeddedPupil ),np .nanmedian (ESFnetEmbeddedPupil ),np .nanstd (ESFnetEmbeddedPupil )])
2076
2017
writer .writerow ([subject , 'RITnet (Pupil)' ,np .nanmean (RITnetPupil ),np .nanmedian (RITnetPupil ),np .nanstd (RITnetPupil )])
2077
2018
2078
- """
2079
- X = mean_subarrays(pd_analysis_prec.loc[
2080
- (pd_analysis_prec['plugin'] == 'vanilla')
2081
- ]['precision-error'].to_numpy())
2082
- Y = mean_subarrays(pd_analysis_prec.loc[
2083
- (pd_analysis_prec['plugin'] == nn_names[0])
2084
- ]['precision-error'].to_numpy())
2085
- labels = np.concatenate((["Native"], [xlabel_dict[k] for k in nn_names]))
2086
- barlabels = np.concatenate((["Native"], [barlabel_dict[k] for k in nn_names]))
2087
- #xlabels = ['Native', 'EllSeg', 'ESFnet', 'RITnet Pupil']
2088
- xlabels = np.concatenate((["Native"], [xlabel_dict[k] for k in nn_names]))
2089
- ylabel = 'Precision Error (degrees)'
2090
- title = 'Gaze Precision Errors Across Neural Networks'
2091
- filename = f'{figout_loc}Generalized Precision TRUE.png'
2092
- ylimit = None
2093
- xlabel = 'Method'
2094
- Z = [mean_subarrays(pd_analysis_prec.loc[
2095
- (pd_analysis_prec['plugin'] == k)
2096
- ]['precision-error'].to_numpy()) for k in nn_names[1:]]
2097
- override_plotsize = False
2098
- group_size = 2
2099
-
2100
- generate_summary_boxplot(X, Y, labels, barlabels, xlabels, ylabel, title, filename, ylimit, xlabel, Z, override_plotsize, group_size)
2101
- """
2102
-
2103
2019
for resolution in (None , 192 , 400 ):
2104
2020
if resolution is None :
2105
2021
fname = f'{ figout_loc } /out_data_precision.csv'
@@ -2377,11 +2293,6 @@ def setBoxColors(bp, color_count=2):
2377
2293
Z .append ([results_by_eccentricity [key ][192 ][subj_num ]['Detector2DRITnetEllsegV2AllvonePlugin' ]['analysis_precision' ] for key in results_by_eccentricity .keys ()])
2378
2294
except KeyError :
2379
2295
pass
2380
- #generate_box_graph(X, Y,
2381
- # results_by_eccentricity.keys(), ('Sub1Vanilla', 'Sub1EllSeg', 'Sub2Vanilla', 'Sub2EllSeg', 'Sub3Vanilla', 'Sub3EllSeg',
2382
- # 'Sub5Vanilla', 'Sub5EllSeg', 'Sub6Vanilla', 'Sub6EllSeg',), 'Precision Error (degrees)', '192x192 FULL analysis Precision Errors by Eccentricity (LOWER IS BETTER)',
2383
- # '192x192 FULL Analysis Precision Errors by Eccentricity.png',
2384
- # ylimit=None, xlabel='Eccentricity (degrees)', Z=Z, override_plotsize=True)
2385
2296
generate_box_graph (X , Y ,
2386
2297
results_by_eccentricity .keys (), subject_labels , 'Precision Error (degrees)' , '192x192 FULL analysis Precision Errors by Eccentricity (LOWER IS BETTER)' ,
2387
2298
'192x192 FULL Analysis Precision Errors by Eccentricity.png' ,
0 commit comments