LogTransform¶
- class LogTransform(in_column: str, base: int = 10, inplace: bool = True, out_column: Optional[str] = None)[source]¶
Bases:
etna.transforms.base.ReversibleTransform
LogTransform applies logarithm transformation for given series.
Init LogTransform.
- Parameters
in_column (str) – column to apply transform
base (int) – base of logarithm to apply to series
inplace (bool) –
if True, apply logarithm transformation inplace to in_column,
if False, add column add transformed column to dataset
out_column (Optional[str]) – name of added column. If not given, use
self.__repr__()
- Inherited-members
Methods
fit
(ts)Fit the transform.
fit_transform
(ts)Fit and transform TSDataset.
Return the list with regressors created by the transform.
inverse_transform
(ts)Inverse transform TSDataset.
load
(path)Load an object.
params_to_tune
()Get grid for tuning hyperparameters.
save
(path)Save the object.
set_params
(**params)Return new object instance with modified parameters.
to_dict
()Collect all information about etna object in dict.
transform
(ts)Transform TSDataset inplace.
- fit(ts: etna.datasets.tsdataset.TSDataset) etna.transforms.math.log.LogTransform [source]¶
Fit the transform.
- Parameters
- Return type