module mlforecast.target_transforms
class BaseTargetTransform
Base class used for target transformations.
method fit_transform
method inverse_transform
method set_column_names
method stack
method update
class Differences
Subtracts previous values of the serie. Can be used to remove trend or seasonalities.
method __init__
method fit_transform
method inverse_transform
method inverse_transform_fitted
method set_num_threads
method stack
method take
method update
class AutoDifferences
Find and apply the optimal number of differences to each serie.
Args:
max_diffs(int): Maximum number of differences to apply.
method __init__
method fit_transform
method inverse_transform
method inverse_transform_fitted
method set_num_threads
method stack
method take
method update
class AutoSeasonalDifferences
Find and apply the optimal number of seasonal differences to each group.
Args:
season_length(int): Length of the seasonal period.max_diffs(int): Maximum number of differences to apply.n_seasons(int, optional): Number of seasons to use to determine the number of differences. Defaults to 10. IfNonewill use all samples, otherwiseseason_length*n_seasons sampleswill be used for the test. Smaller values will be faster but could be less accurate.
method __init__
method fit_transform
method inverse_transform
method inverse_transform_fitted
method set_num_threads
method stack
method take
method update
class AutoSeasonalityAndDifferences
Find the length of the seasonal period and apply the optimal number of differences to each group.
Args:
max_season_length(int): Maximum length of the seasonal period.max_diffs(int): Maximum number of differences to apply.n_seasons(int, optional): Number of seasons to use to determine the number of differences. Defaults to 10. IfNonewill use all samples, otherwisemax_season_length*n_seasons sampleswill be used for the test. Smaller values will be faster but could be less accurate.
method __init__
method fit_transform
method inverse_transform
method inverse_transform_fitted
method set_num_threads
method stack
method take
method update
class LocalStandardScaler
Standardizes each serie by subtracting its mean and dividing by its standard deviation.
method fit_transform
method inverse_transform
method inverse_transform_fitted
method set_num_threads
method stack
method take
method update
class LocalMinMaxScaler
Scales each serie to be in the [0, 1] interval.
method fit_transform
method inverse_transform
method inverse_transform_fitted
method set_num_threads
method stack
method take
method update
class LocalRobustScaler
Scaler robust to outliers.
Args:
scale(str): Statistic to use for scaling. Can be either ‘iqr’ (Inter Quartile Range) or ‘mad’ (Median Asbolute Deviation). Defaults to ‘iqr’.

