pyblp.SimulationResults.to_dict

SimulationResults.to_dict(attributes=('product_data', 'computation_time', 'fp_converged', 'fp_iterations', 'contraction_evaluations'))

Convert these results into a dictionary that maps attribute names to values.

Once converted to a dictionary, these results can be saved to a file with pickle.dump().

Parameters

attributes (sequence of str, optional) – Name of attributes that will be added to the dictionary. By default, all SimulationResults attributes are added except for SimulationResults.simulation.

Returns

Mapping from attribute names to values.

Return type

dict

Examples