some new features

This commit is contained in:
ilgazca
2025-07-30 17:09:11 +03:00
parent db5d46760a
commit 8019bd3b7c
20616 changed files with 4375466 additions and 8 deletions

View File

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
import pmdarima as pm
from pmdarima.utils.wrapped import acf, pacf
import statsmodels.api as sm
import numpy as np
import pytest
y = pm.datasets.load_wineind()
@pytest.mark.parametrize(
'wrapped_func,native_func', [
pytest.param(sm.tsa.stattools.acf, acf),
pytest.param(sm.tsa.stattools.pacf, pacf)
])
def test_wrapped_functions(wrapped_func, native_func):
sm_res = wrapped_func(y) # type: np.ndarray
pm_res = native_func(y)
assert np.allclose(sm_res, pm_res)
# Show the docstrings are the same
assert wrapped_func.__doc__ == native_func.__doc__