How to use the pyts.utils.deprecated function in pyts

To help you get started, we’ve selected a few pyts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github johannfaouzi / pyts / pyts / metrics / dtw.py View on Github external
@deprecated("dtw_region is deprecated in 0.11 and will be removed in 0.12. "
            "Use dtw(method='region') instead.")
def dtw_region(x=None, y=None, dist='square', region=None,
               precomputed_cost=None, return_cost=False,
               return_accumulated=False, return_path=False):
    """Dynamic Time Warping (DTW) distance with a constraint region.

    .. deprecated:: 0.11
        This function is deprecated and will be removed in 0.12.
        Use :func:`dtw` with ``method='region'`` instead.

    Parameters
    ----------
    x : array-like, shape = (n_timestamps_1,)
        First array. Ignored if ``dist == 'precomputed'``.

    y : array-like, shape = (n_timestamps_2,)
github johannfaouzi / pyts / pyts / metrics / dtw.py View on Github external
@deprecated("dtw_sakoechiba is deprecated in 0.11 and will be removed in "
            "0.12. Use dtw(method='sakoechiba') instead.")
def dtw_sakoechiba(x=None, y=None, dist='square', window_size=0.1,
                   precomputed_cost=None, return_cost=False,
                   return_accumulated=False, return_path=False):
    """Dynamic Time Warping (DTW) distance with Sakoe-Chiba band constraint.

    .. deprecated:: 0.11
        This function is deprecated and will be removed in 0.12.
        Use :func:`dtw` with ``method='sakoechiba'`` instead.

    Parameters
    ----------
    x : array-like, shape = (n_timestamps_1,)
        First array. Ignored if ``dist == 'precomputed'``.

    y : array-like, shape = (n_timestamps_2,)
github johannfaouzi / pyts / pyts / metrics / dtw.py View on Github external
@deprecated("dtw_classic is deprecated in 0.11 and will be removed in 0.12. "
            "Use dtw(method='classic') instead.")
def dtw_classic(x=None, y=None, dist='square', precomputed_cost=None,
                return_cost=False, return_accumulated=False,
                return_path=False):
    """Classic Dynamic Time Warping (DTW) distance between two time series.

    .. deprecated:: 0.11
        This function is deprecated and will be removed in 0.12.
        Use :func:`dtw` with ``method='classic'`` instead.

    Parameters
    ----------
    x : array-like, shape = (n_timestamps_1,)
        First array. Ignored if ``dist == 'precomputed'``.

    y : array-like, shape = (n_timestamps_2,)
github johannfaouzi / pyts / pyts / metrics / dtw.py View on Github external
@deprecated("dtw_multiscale is deprecated in 0.11 and will be removed in "
            "0.12. Use dtw(method='multiscale') instead.")
def dtw_multiscale(x, y, dist='square', resolution=2, radius=0,
                   return_cost=False, return_accumulated=False,
                   return_path=False):
    """Multiscale Dynamic Time Warping distance.

    .. deprecated:: 0.11
        This function is deprecated and will be removed in 0.12.
        Use :func:`dtw` with ``method='multiscale'`` instead.

    Parameters
    ----------
    x : array-like, shape = (n_timestamps_1,)
        First array.

    y : array-like, shape = (n_timestamps_2,)
github johannfaouzi / pyts / pyts / metrics / dtw.py View on Github external
@deprecated("dtw_fast is deprecated in 0.11 and will be removed in 0.12. "
            "Use dtw(method='fast') instead.")
def dtw_fast(x, y, dist='square', radius=0, return_cost=False,
             return_accumulated=False, return_path=False):
    """Fast Dynamic Time Warping distance.

    .. deprecated:: 0.11
        This function is deprecated and will be removed in 0.12.
        Use :func:`dtw` with ``method='fast'`` instead.

    Parameters
    ----------
    x : array-like, shape = (n_timestamps_1,)
        First array.

    y : array-like, shape = (n_timestamps_2,)
        Second array.
github johannfaouzi / pyts / pyts / metrics / dtw.py View on Github external
@deprecated("dtw_itakura is deprecated in 0.11 and will be removed in 0.12. "
            "Use dtw(method='itakura') instead.")
def dtw_itakura(x=None, y=None, dist='square', max_slope=2.,
                precomputed_cost=None, return_cost=False,
                return_accumulated=False, return_path=False):
    """Dynamic Time Warping distance with Itakura parallelogram constraint.

    .. deprecated:: 0.11
        This function is deprecated and will be removed in 0.12.
        Use :func:`dtw` with ``method='itakura'`` instead.

    Parameters
    ----------
    x : array-like, shape = (n_timestamps_1,)
        First array. Ignored if ``dist == 'precomputed'``.

    y : array-like, shape = (n_timestamps_2,)