<!-- If your issue is a usage question, submit it here instead: - StackOverflow with the scikit-learn tag: http://stackoverflow.com/questions/tagged/scikit-learn - Mailing List: https://mail.python.org/mailman/listinfo/scikit-learn For more information, see User Questions: http://scikit-learn.org/stable/support.html#user-questions --> <!-- Instructions For Filing a Bug: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#filing-bugs --> #### Description Some algorithms don't pass tests in 32-bit mode. They should be investigated. <!-- Example: Joblib Error thrown when calling fit on LatentDirichletAllocation with evaluate_every > 0--> #### Steps/Code to Reproduce To test this, you just need to run (in some temp directory where it is okay to clone a temp repo to): ```bash git clone https://www.github.com/scikit-learn/scikit-learn cd scikit-learn # run docker container in interactive mode: docker run --rm -it -v`pwd`:/io quay.io/pypa/manylinux1_i686 /bin/bash export PATH=/opt/python/cp36-cp36m/bin:$PATH pip install numpy scipy cython pytest; cd /io;python setup.py develop;sed -i '/--doctest-modules/d' setup.cfg;pytest -l sklearn ``` The building will take a while.... <!-- Example: ```python from sklearn.feature_extraction.text import CountVectorizer from sklearn.decomposition import LatentDirichletAllocation docs = ["Help I have a bug" for i in range(1000)] vectorizer = CountVectorizer(input=docs, analyzer='word') lda_features = vectorizer.fit_transform(docs) lda_model = LatentDirichletAllocation( n_topics=10, learning_method='online', evaluate_every=10, n_jobs=4, ) model = lda_model.fit(lda_features) ``` If the code is too long, feel free to put it in a public gist and link it in the issue: https://gist.github.com --> #### Expected Results Tests should all pass #### Actual Results Three fail. See #11515 #### Versions <!-- Please run the following snippet and paste the output below. import platform; print(platform.platform()) import sys; print("Python", sys.version) import numpy; print("NumPy", numpy.__version__) import scipy; print("SciPy", scipy.__version__) import sklearn; print("Scikit-Learn", sklearn.__version__) --> <!-- Thanks for contributing! -->
Activity
massich commentedon Jul 16, 2018
thx for the MWE.
I started looking at this:
My initial idea was that it had to do with the random state. I tried the following but is not there.
I'll keep working on it (but maybe we need to let it for after 0.20 release)
massich commentedon Jul 16, 2018
Can anyone help in tracing the differences between
libsvm.fitandlibsvm_sparse.libsvm_sparse_train??jrmlhermitte commentedon Jul 18, 2018
great thanks! maybe @ogrisel would know?
thomasjpfan commentedon Jan 16, 2020
We have 32bit linux testing on the azure CI to catch these types of bugs now. Currently all the tests pass on the 32bit instance.