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,12 @@
import warnings
from statsmodels.tools.parallel import parallel_func
from numpy import arange, testing
from math import sqrt
def test_parallel():
x = arange(10.)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
parallel, p_func, n_jobs = parallel_func(sqrt, n_jobs=-1, verbose=0)
y = parallel(p_func(i**2) for i in range(10))
testing.assert_equal(x,y)