Get the standard deviation as a measure of dispersion of the distribution. We should aim for higher values as they indicate there is high variation in the distribution. Thus the evidence of the best config is stronger.
(self)
| 407 | return self._gemm_config_freq.most_common(1) |
| 408 | |
| 409 | def std(self): |
| 410 | """ Get the standard deviation as a measure of dispersion of the distribution. We should aim for higher values |
| 411 | as they indicate there is high variation in the distribution. Thus the evidence of the best config is stronger. |
| 412 | """ |
| 413 | freqs = self._gemm_config_freq.values() |
| 414 | if len(freqs) == 0: |
| 415 | return 0 |
| 416 | mean_freq = sum(freqs) / len(freqs) |
| 417 | return math.sqrt(sum((freq - mean_freq) ** 2 for freq in freqs) / len(freqs)) |
| 418 | |
| 419 | |
| 420 | ################################################################################ |