ray.data.aggregate.Std#
- class ray.data.aggregate.Std(on: str | None = None, ddof: int = 1, ignore_nulls: bool = True, alias_name: str | None = None)[source]#
Bases:
_AggregateOnKeyBase
Defines standard deviation aggregation.
Uses Welford’s online method for an accumulator-style computation of the standard deviation. This method was chosen due to its numerical stability, and it being computable in a single pass. This may give different (but more accurate) results than NumPy, Pandas, and sklearn, which use a less numerically stable two-pass algorithm. See https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford’s_online_algorithm
Methods