Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread lin yenchen
Thanks Matthew, you are right. I did not use the right Python. But sorry for temporarily not getting time to set up all python 32 bit nosetests stuff since my final goal is to address my CI issues, and I am currently using this feature pro

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
On Wed, Jul 20, 2016 at 7:26 PM, lin yenchen wrote: > arch: posix_spawnp: nosetests: Bad CPU type in executable I think your nosetests is pointing to a Python executable other than Python.org Python. I only get that error when trying to execute homebrew Python, not Python.org Python or system Py

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread lin yenchen
arch: posix_spawnp: nosetests: Bad CPU type in executable 2016-07-21 2:24 GMT+08:00 Matthew Brett : > On Wed, Jul 20, 2016 at 7:14 PM, lin yenchen > wrote: > > Sorry I can't run arch -32 nosetests on my mac, > > but I execute the function test_huge_allocations existing in test_tree.py > > solely

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
On Wed, Jul 20, 2016 at 7:14 PM, lin yenchen wrote: > Sorry I can't run arch -32 nosetests on my mac, > but I execute the function test_huge_allocations existing in test_tree.py > solely using 32bit python (checked by sys.maxint), > it still works. What error do you get for `arch -32 nosetests` ?

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread lin yenchen
Sorry I can't run arch -32 nosetests on my mac, but I execute the function test_huge_allocations existing in test_tree.py solely using 32bit python (checked by sys.maxint), it still works. It's pretty weird ... Best, Yen-Chen 2016-07-21 1:55 GMT+08:00 Matthew Brett : > Hi, > > On Wed, Jul 20

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
Hi, On Wed, Jul 20, 2016 at 6:37 PM, lin yenchen wrote: > It's probably because I built it in a different way. > > Here is the steps for how I built it: > > Type arch -32 > /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c > "import sys; print sys.maxint" and make sure it out

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread lin yenchen
It's probably because I built it in a different way. Here is the steps for how I built it: 1. Type arch -32 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python -c "import sys; print sys.maxint" and make sure it outputs 2147483647. 2. Modify line 5 of Makefile exists

Re: [scikit-learn] Three new scikit-learn-contrib projects

2016-07-20 Thread Guillaume LemaƮtre
Hi Gael, I was wondering if you could elaborate on the problem of hyper-parameter tuning and why the imbalanced-learn would not benefit from it. Since that we used the identical pipeline of scikit-learn and add the part to handle the sampler, I would have think that we could use it. However this

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
On Wed, Jul 20, 2016 at 5:25 PM, lin yenchen wrote: > Thanks for you guys' precious inputs. > > I've successfully built a 32-bit python version scikit-learn and check it by > printing `sys.maxint`, > and all the tests passed on my mac. (I'm running the newest dev version > though) On current mast

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Nelson Liu
Your assumption is correct, appveyor does run windows. Nelson On Wed, Jul 20, 2016 at 9:36 AM lin yenchen wrote: > Well, but the tests failed on CI > of > my PR passed

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread lin yenchen
Well, but the tests failed on CI of my PR passed on my local 32 bit scikit-learn. Do this mean that the problem exists on the Windows? (I assumed appveyor is running Windo

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread lin yenchen
Thanks for you guys' precious inputs. I've successfully built a 32-bit python version scikit-learn and check it by printing `sys.maxint`, and all the tests passed on my mac. (I'm running the newest dev version though) Best, Yen-Chen 2016-07-21 0:00 GMT+08:00 Matthew Brett : > On Wed, Jul 20, 2

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
On Wed, Jul 20, 2016 at 9:16 AM, Matthew Brett wrote: > On Wed, Jul 20, 2016 at 9:09 AM, Olivier Grisel > wrote: >>> I believe this `arch -i386` only works as a prefix for Python.org Python, >>> but I'm happy to be corrected. >> >> Then the following should work: >> >> arch -i386 python -c "imp

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
On Wed, Jul 20, 2016 at 9:09 AM, Olivier Grisel wrote: >> I believe this `arch -i386` only works as a prefix for Python.org Python, >> but I'm happy to be corrected. > > Then the following should work: > > arch -i386 python -c "import nose; nose.main()" sklearn Sorry - I should have been clear

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Olivier Grisel
> I believe this `arch -i386` only works as a prefix for Python.org Python, > but I'm happy to be corrected. Then the following should work: arch -i386 python -c "import nose; nose.main()" sklearn ___ scikit-learn mailing list scikit-learn@python.org

Re: [scikit-learn] Three new scikit-learn-contrib projects

2016-07-20 Thread Gael Varoquaux
Hey, These packages look great! I was interested in the imbalanced learning, which is something that we stumbled upon: > * imbalanced-learn: https://github.com/scikit-learn-contrib/imbalanced-learn > Python module to perform under sampling and over sampling with various > techniques. Interestin

Re: [scikit-learn] How to test on PYTHON_ARCH=32 with mac?

2016-07-20 Thread Matthew Brett
On Wed, Jul 20, 2016 at 6:05 AM, lin yenchen wrote: > Hi all, > > currently the CI tests of my PR is failing only on appveyor when > PYTHON_ARCH=32. > > Are there any ways to build a PYTHON_ARCH=32 version of scikit-learn on a > mac, > or the only solution is to get a windows computer? If you ins