sklearn_tournament.commons¶
Module Contents¶
Classes¶
Base class for a widget to use in progress display. |
|
Base class for a widget to use in progress display. |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Exponential moving average: smoothing to give progressively lower |
|
Attributes¶
-
sklearn_tournament.commons.round_to_first_significant(num: float, max_digits: int = 3) → float[source]¶
-
sklearn_tournament.commons.round_to_first_significant_digits(num: float, digits: int = 1, max_digits: int = 3) → float[source]¶
-
sklearn_tournament.commons.ema(x: float, mu: Optional[float] = None, alpha: float = 0.3) → float[source]¶ Exponential moving average: smoothing to give progressively lower weights to older values. :param x: New value to include in EMA. :type x: float :param mu: Previous EMA value. :type mu: float, optional :param alpha: Smoothing factor in range [0, 1], [default: 0.3].
Increase to give more weight to recent values. Ranges from 0 (yields mu) to 1 (yields x).
-
class
sklearn_tournament.commons.ItemsPerSecondColumn[source]¶ Bases:
rich.progress.ProgressColumnBase class for a widget to use in progress display.