Issue 1:
I have tried both the methods.

I am using Ubuntu 12.04 (32bit) with python 2.7.3, numpy 1.6.1, scipy 0.9.0

I first installed using apt-get install python-sklearn. But there were many failures from both the methods. Then I remove python-sklearn with apt-get remove python-sklearn. Then I tried installing it from the source package using

python setup.py build

sudo python setup.py install

When I tried running the nose test, it failed (the error is shown below).

-------------------------------------------------------------------------ERROR trace1---------------------------------------------------------------------------

~/OpenSource$ nosetests sklearn --exe

E

ERROR: Failure: ImportError (No module named _check_build

Contents of /home/manaswi/OpenSource/scikit-learn-0.13.1/sklearn/check_build:

_check_build.pyx __init.pyc _check_build.c

init.py setup.pyc setup.py

It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget to build the package before using it: run python setup.py install or make in the source directory. If you have used an installer, please check that it is suited for your Python version, your operating system and your platform.

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 390, in loadTestsFromName

addr.filename, addr.module)

File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 39, in importFromPath

return self.importFromDir(dir_path, fqname)

File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 86, in importFromDir

mod = load_module(part_fqname, fh, filename, desc)

File "/home/manaswi/OpenSource/scikit-learn-0.13.1/sklearn/init.py", line 31, in

from . import check_build

File "/home/manaswi/OpenSource/scikit-learn-0.13.1/sklearn/__check_build/__init.py", line 47, in

raise_build_error(e)

File "/home/manaswi/OpenSource/scikit-learn-0.13.1/sklearn/check_build/__init.py", line 42, in raise_build_error

%s""" % (e, local_dir, ''.join(dir_content).strip(), msg))

ImportError: No module named _check_build

Contents of /home/manaswi/OpenSource/scikit-learn-0.13.1/sklearn/check_build:

_check_build.pyx __init.pyc _check_build.c

init.py setup.pyc setup.py

It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget to build the package before using it: run python setup.py install or make in the source directory. If you have used an installer, please check that it is suited for your

Python version, your operating system and your platform.

Ran 1 test in 0.001s

FAILED (errors=1)

Then I installed sklearn package again. I tried the nosetests as well with python -c "import sklearn; sklearn.test()".

The errors are shown below:

-------------------------------------------------------------------------ERROR trace2---------------------------------------------------------------------------

~/OpenSource$ nosetests sklearn --exe

.............................................................../usr/local/lib/python2.7/dist-packages/sklearn/manifold/spectral_embedding.py:225: UserWarning: Graph is not fully connected, spectral embedding may not works as expected.

warnings.warn("Graph is not fully connected, spectral embedding"

...........SS...............S.....................................................S.........................................................S................................................................../usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/test/test_func_inspect.py:122: UserWarning: Cannot inspect object <functools.partial object at 0xcee2fa4>, ignore list will not work.

nose.tools.assert_equal(filter_args(ff, ['y'], (1, )),

............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F....................................................................................SSS....S....S...................................................................................................................................

FAIL: sklearn.tests.test_common.test_transformers

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/usr/local/lib/python2.7/dist-packages/sklearn/tests/test_common.py", line 230, in test_transformers

"fit_transform not correct in %s" % Trans)

File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 800, in assert_array_almost_equal

header=('Arrays are not almost equal to %d decimals' % decimal))

File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 636, in assert_array_compare

raise AssertionError(msg)

AssertionError:

Arrays are not almost equal to 2 decimals

fit_transform not correct in <class 'sklearn.pls.CCA'>

(mismatch 50.0%)

x: array([[ 0.97459066, -0.37275475],

[-0.97199043, 0.22191067],

[-0.97199043, 0.22191067],...

y: array([[ 9.74590662e-01, -8.38417465e-16],

[ -9.71990427e-01, 4.91932783e-16],

[ -9.71990427e-01, 4.91932783e-16],...

Ran 1603 tests in 90.243s

FAILED (SKIP=11, failures=1)

*Trying with python -c "import sklearn; sklearn.test()" gave me the following: *

-------------------------------------------------------------------------ERROR trace3---------------------------------------------------------------------------

~/OpenSource$ python -c "import sklearn; sklearn.test()"

Other than the Doctest failures, I get the following error:

FAIL: sklearn.tests.test_common.test_transformers

Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest

self.test(*self.arg)

File "/usr/local/lib/python2.7/dist-packages/sklearn/tests/test_common.py", line 237, in test_transformers

"fit_transform not correct in %s" % Trans)

File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 800, in assert_array_almost_equal

header=('Arrays are not almost equal to %d decimals' % decimal))

File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 600, in assert_array_compare

raise AssertionError(msg)

AssertionError:

Arrays are not almost equal to 2 decimals

fit_transform not correct in <class 'sklearn.decomposition.kernel_pca.KernelPCA'>

(shapes (30, 20), (30, 18) mismatch)

x: array([[ 1.87664949e+00, 8.57398986e-02, 4.20312700e-02,

3.63938109e-08, 0.00000000e+00, 0.00000000e+00,

0.00000000e+00, 0.00000000e+00, 0.00000000e+00,...

y: array([[ 1.87664949e+00, 8.57398986e-02, 4.20312700e-02,

-3.35096502e-08, -5.65023583e-09, 6.94581104e-09,

1.93372216e-08, 7.76708475e-09, 4.25320650e-08,...

Ran 1737 tests in 270.588s

FAILED (SKIP=11, errors=21, failures=15)

How should I resolve this?

Issue 2:
In test_transformers CCA's fit_transform fails for me on 32bit ubuntu. Anyone else?