pyblp.SimulationResults.to_dict¶
-
SimulationResults.to_dict(attributes=('product_data', 'delta', 'costs', 'computation_time', 'fp_converged', 'fp_iterations', 'contraction_evaluations', 'profit_gradients', 'profit_gradient_norms', 'profit_hessians', 'profit_hessian_eigenvalues'))¶ Convert these results into a dictionary that maps attribute names to values.
- Parameters
attributes (sequence of str, optional) – Name of attributes that will be added to the dictionary. By default, all
SimulationResultsattributes are added except forSimulationResults.simulation.- Returns
Mapping from attribute names to values.
- Return type
dict
Examples