@@ -1849,13 +1849,13 @@ def sensitivity_plot(self, idx_treatment=0, value='theta', include_scenario=True
1849
1849
benchmark_dict = copy .deepcopy (benchmarks )
1850
1850
if benchmarks is not None :
1851
1851
n_benchmarks = len (benchmarks ['name' ])
1852
- benchmark_values = n_benchmarks * [ np .nan ]
1852
+ benchmark_values = np . full ( shape = ( n_benchmarks ,), fill_value = np .nan )
1853
1853
for benchmark_idx in range (len (benchmarks ['name' ])):
1854
1854
sens_dict_bench = self ._calc_sensitivity_analysis (cf_y = benchmarks ['cf_y' ][benchmark_idx ],
1855
1855
cf_d = benchmarks ['cf_y' ][benchmark_idx ],
1856
1856
rho = self .sensitivity_params ['input' ]['rho' ],
1857
1857
level = self .sensitivity_params ['input' ]['level' ])
1858
- benchmark_values [benchmark_idx ] = round ( sens_dict_bench [value ][bound ][idx_treatment ], 3 )
1858
+ benchmark_values [benchmark_idx ] = sens_dict_bench [value ][bound ][idx_treatment ]
1859
1859
benchmark_dict ['value' ] = benchmark_values
1860
1860
fig = _sensitivity_contour_plot (x = cf_d_vec ,
1861
1861
y = cf_y_vec ,
@@ -1868,7 +1868,7 @@ def sensitivity_plot(self, idx_treatment=0, value='theta', include_scenario=True
1868
1868
benchmarks = benchmark_dict ,
1869
1869
fill = fill )
1870
1870
return fig
1871
-
1871
+
1872
1872
def sensitivity_benchmark (self , benchmarking_set ):
1873
1873
"""
1874
1874
Computes a benchmark for a given set of features.
0 commit comments