pyblp.ImportanceSamplingResults.to_dict

ImportanceSamplingResults.to_dict(attributes=('sampled_agents', 'computation_time', 'draws', 'diagnostic_market_ids', 'weight_sums', 'effective_draws', 'effective_draws_for_variance', 'effective_draws_for_skewness'))

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

Parameters

attributes (sequence of str, optional) – Names of attributes that will be added to the dictionary. By default, all ImportanceSamplingResults attributes are added except for ImportanceSamplingResults.problem_results.

Returns

Mapping from attribute names to values.

Return type

dict

Examples