slv.inversion.sweep.SweepResults.sensitivity#

SweepResults.sensitivity(metric='reduced_chi2', target=None)[source]#

Rank swept parameters by their effect on metric.

Computes the range (max − min) of the group-mean metric when grouped by each cfg_* column. A larger range means the result is more sensitive to that parameter. best_value is the value whose group-mean metric is closest to target (1 for reduced_chi2), or the lowest when there is no target.

Return type:

DataFrame sorted by sensitivity (most influential first).