LogTransform
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class LogTransform(across_features: bool = False)[source]
Bases:
_ScopedMethodCompress right-skewed features with
log(x - min + 1).The shift by the learned minimum keeps the argument positive for every value seen at fit time, so no hand-tuned offset is needed.