Skip to content

Commit da74d8b

Browse files
committed
[FSTORE-1412][Append] Add std_dev alias for transformation functions
1 parent 08a4a66 commit da74d8b

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

python/hsfs/transformation_statistics.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from typing import TYPE_CHECKING, Any
2222

2323
import humps
24-
from hopsworks_apigen import public
24+
from hopsworks_apigen import deprecated, public
2525

2626

2727
if TYPE_CHECKING:
@@ -157,6 +157,18 @@ def std_dev(self) -> float | None:
157157
"""Standard deviation of the feature values."""
158158
return self._std_dev
159159

160+
@public
161+
@property
162+
@deprecated(
163+
"hsfs.transformation_statistics.FeatureTransformationStatistics.std_dev"
164+
)
165+
def stddev(self) -> float | None:
166+
"""Standard deviation of the feature values.
167+
168+
Deprecated alias for [`std_dev`][hsfs.transformation_statistics.FeatureTransformationStatistics.std_dev].
169+
"""
170+
return self._std_dev
171+
160172
@public
161173
@property
162174
def percentiles(self) -> Mapping[str, float] | None:

0 commit comments

Comments
 (0)