openfermioncirq.optimization.OptimizationTrialResult¶
-
class
openfermioncirq.optimization.
OptimizationTrialResult
(results: Iterable[openfermioncirq.optimization.result.OptimizationResult], params: OptimizationParams)[source]¶ The results from multiple repetitions of an optimization run.
-
data_frame
¶ A pandas DataFrame storing the results of each repetition of the optimization run. It has the following columns:
optimal_value: The optimal value found. optimal_parameters: The function input corresponding to the
optimal value.- num_evaluations: The number of function evaluations used
- by the optimization algorithm.
cost_spent: The total cost spent on function evaluations. seed: A random number generator seed used by the repetition. status: A status returned by the optimization algorithm. message: A message returned by the optimization algorithm. time: The time it took for the repetition to complete. average_wait_time: The average time used by the optimizer to
decide on the next evaluation point.
-
params
¶ An OptimizationParams object storing the optimization parameters used to obtain the results.
-
repetitions
¶ The number of times the optimization run was repeated.
-
optimal_value
¶ The optimal value over all repetitions of the run.
-
optimal_parameters
¶ The function parameters corresponding to the optimal value.
-
__init__
(results: Iterable[openfermioncirq.optimization.result.OptimizationResult], params: OptimizationParams) → None[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(results, params)Initialize self. extend
(results)Attributes
optimal_parameters
optimal_value
repetitions
-