scikit-learn: 2 test failures on Debian stable (stretch) amd64
Sorry no show_versions output (yet to add to debian/rules
, numpy 1.12.1), and I just wanted to possibly seek ideas/clues before digging deeper or skipping those tests - everything seems to be ok on more recentish systems:
1
____________________________ test_lars_cv_max_iter _____________________________
@pytest.mark.filterwarnings('ignore::FutureWarning')
def test_lars_cv_max_iter():
with warnings.catch_warnings(record=True) as w:
X = diabetes.data
y = diabetes.target
rng = np.random.RandomState(42)
x = rng.randn(len(y))
X = np.c_[X, x, x] # add correlated features
lars_cv = linear_model.LassoLarsCV(max_iter=5)
lars_cv.fit(X, y)
> assert_true(len(w) == 0)
re assert_true
submitted #12547 - but anything sounds familiar?
2
__________________________ test_docstring_parameters ___________________________
@pytest.mark.filterwarnings('ignore::DeprecationWarning')
@pytest.mark.skipif(IS_PYPY, reason='test segfaults on PyPy')
def test_docstring_parameters():
# Test module docstring formatting
...
msg = '\n' + '\n'.join(sorted(list(set(incorrect))))
if len(incorrect) > 0:
> raise AssertionError("Docstring Error: " + msg)
E AssertionError: Docstring Error:
E sklearn.utils.fixes.divide arg mismatch: ['dtype', 'out', 'x1', 'x2']
sklearn/tests/test_docstring_parameters.py:125: AssertionError
so this one is particularly mysterious 😉
show_versions()
ATLAS version 3.10.3 built by buildd on Tue Jan 17 22:59:14 UTC 2017:
UNAME : Linux x86-ubc-01 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux
INSTFLG : -1 0 -a 1 -l 1
ARCHDEFS : -DATL_OS_Linux -DATL_ARCH_x86SSE2 -DATL_CPUMHZ=2297 -DATL_SSE2 -DATL_SSE1 -DATL_USE64BITS -DATL_GAS_x8664
F2CDEFS : -DAdd_ -DF77_INTEGER=int -DStringSunStyle
CACHEEDGE: 1048576
F77 : /usr/bin/x86_64-linux-gnu-gfortran, version GNU Fortran (Debian 6.3.0-2) 6.3.0 20161229
F77FLAGS : -fomit-frame-pointer -mfpmath=sse -O2 -msse2 -fPIC -m64
SMC : /usr/bin/gcc-6, version gcc-6 (Debian 6.3.0-2) 6.3.0 20161229
SMCFLAGS : -fomit-frame-pointer -mfpmath=sse -O2 -msse2 -fPIC -m64
SKC : /usr/bin/gcc-6, version gcc-6 (Debian 6.3.0-2) 6.3.0 20161229
SKCFLAGS : -fomit-frame-pointer -mfpmath=sse -O2 -msse2 -fPIC -m64
System
------
python: 2.7.13 (default, Nov 24 2017, 17:33:09) [GCC 6.3.0 20170516]
machine: Linux-4.16.0-0.bpo.2-amd64-x86_64-with-debian-9.5
executable: /usr/bin/python2.7
BLAS
----
macros: HAVE_CBLAS=None, ATLAS_INFO="\"3.10.3\""
cblas_libs: f77blas, cblas, atlas, f77blas, cblas
lib_dirs: /usr/lib/atlas-base
Python deps
-----------
Cython: None
scipy: 0.18.1
setuptools: 33.1.1
pip: None
numpy: 1.12.1
pandas: 0.22.0
sklearn: 0.20.0
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (19 by maintainers)
Commits related to this issue
- TST don't test utils.fixes docstrings Partial fix for #12548. If code coverage does not drop, then this indicates the code is working. — committed to jnothman/scikit-learn by jnothman 6 years ago
Sounds good.