mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-10 16:55:42 +00:00
update
This commit is contained in:
parent
184251a2a7
commit
b8982f7cf2
@ -91,27 +91,25 @@ class ExperimentAnalysis(EA):
|
|||||||
)
|
)
|
||||||
feasible_value = k_values.take(feasible_index)
|
feasible_value = k_values.take(feasible_index)
|
||||||
f_best[k_metric] = np.min(feasible_value)
|
f_best[k_metric] = np.min(feasible_value)
|
||||||
|
|
||||||
feasible_index_filter = np.where(
|
feasible_index_filter = np.where(
|
||||||
feasible_value
|
feasible_value
|
||||||
<= max(
|
<= max(
|
||||||
[
|
f_best[k_metric] + self.lexico_objectives["tolerances"][k_metric]
|
||||||
f_best[k_metric]
|
if not isinstance(
|
||||||
+ self.lexico_objectives["tolerances"][k_metric]
|
self.lexico_objectives["tolerances"][k_metric], str
|
||||||
if not isinstance(
|
)
|
||||||
self.lexico_objectives["tolerances"][k_metric], str
|
else f_best[k_metric]
|
||||||
)
|
* (
|
||||||
else f_best[k_metric]
|
1
|
||||||
* (
|
+ 0.01
|
||||||
1
|
* float(
|
||||||
+ 0.01
|
self.lexico_objectives["tolerances"][k_metric].replace(
|
||||||
* float(
|
"%", ""
|
||||||
self.lexico_objectives["tolerances"][k_metric].replace(
|
|
||||||
"%", ""
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
),
|
)
|
||||||
k_target,
|
),
|
||||||
]
|
k_target,
|
||||||
)
|
)
|
||||||
)[0]
|
)[0]
|
||||||
feasible_index = feasible_index.take(feasible_index_filter)
|
feasible_index = feasible_index.take(feasible_index_filter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user