mirror of
				https://github.com/microsoft/autogen.git
				synced 2025-10-31 17:59:50 +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) | ||||
|             f_best[k_metric] = np.min(feasible_value) | ||||
| 
 | ||||
|             feasible_index_filter = np.where( | ||||
|                 feasible_value | ||||
|                 <= max( | ||||
|                     [ | ||||
|                         f_best[k_metric] | ||||
|                         + self.lexico_objectives["tolerances"][k_metric] | ||||
|                         if not isinstance( | ||||
|                             self.lexico_objectives["tolerances"][k_metric], str | ||||
|                         ) | ||||
|                         else f_best[k_metric] | ||||
|                         * ( | ||||
|                             1 | ||||
|                             + 0.01 | ||||
|                             * float( | ||||
|                                 self.lexico_objectives["tolerances"][k_metric].replace( | ||||
|                                     "%", "" | ||||
|                                 ) | ||||
|                     f_best[k_metric] + self.lexico_objectives["tolerances"][k_metric] | ||||
|                     if not isinstance( | ||||
|                         self.lexico_objectives["tolerances"][k_metric], str | ||||
|                     ) | ||||
|                     else f_best[k_metric] | ||||
|                     * ( | ||||
|                         1 | ||||
|                         + 0.01 | ||||
|                         * float( | ||||
|                             self.lexico_objectives["tolerances"][k_metric].replace( | ||||
|                                 "%", "" | ||||
|                             ) | ||||
|                         ), | ||||
|                         k_target, | ||||
|                     ] | ||||
|                         ) | ||||
|                     ), | ||||
|                     k_target, | ||||
|                 ) | ||||
|             )[0] | ||||
|             feasible_index = feasible_index.take(feasible_index_filter) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 skzhang1
						skzhang1