bucky.util.power_transforms
¶
Simple power transformation classes.
Module Contents¶
Classes¶
Wrapper class for a Box-Cox transformer. |
|
Wrapper class for a Yeo-Johnson transformer. |
Functions¶
|
Box-Cox tranform, batched in the first dimension. |
|
Fit lambda of a power transform using grid search, taking the the most normally distributed result. |
|
Inverse Box-Cox tranform, batched in the first dimension. |
|
Inverse Yeo-Johnson tranform, batched in the first dimension. |
|
Normal distribution CDF, batched. |
|
Yeo-Johnson tranform, batched in the first dimension. |
- bucky.util.power_transforms.boxcox(y, lam, lam2=None)[source]¶
Box-Cox tranform, batched in the first dimension.
- bucky.util.power_transforms.fit_lam(y, yj=False, lam_range=(- 2, 2, 0.1))[source]¶
Fit lambda of a power transform using grid search, taking the the most normally distributed result.
- bucky.util.power_transforms.inv_boxcox(y, lam1, lam2)[source]¶
Inverse Box-Cox tranform, batched in the first dimension.