Re: [Scikit-learn-general] Question about using sample weights to fit an svm

2013-07-22 Thread Daniel Vainsencher
I opened the issue for the first, also mentioning the second problem. https://github.com/scikit-learn/scikit-learn/issues/2191 Daniel On 07/22/2013 03:16 PM, Andreas Mueller wrote: On 07/22/2013 02:12 PM, Anne Dwyer wrote:

Re: [Scikit-learn-general] Talk video; python-future package [was: Python 3 port]

2013-07-22 Thread Robert Layton
Hi Ed, That's an interesting project with a novel viewpoint - build on 3 and support 2. Thanks for the link, I know a few people at work that would like to see it. - Robert On 23 July 2013 01:34, Ed Schofield wrote: > Hi Robert, hi all! > > > Thanks for your talk, it was very informative. I

Re: [Scikit-learn-general] Gracefully modeling missing values (nan's) in CART (classification or regression trees).

2013-07-22 Thread Ronnie Ghose
+1 I was looking for something similar On Jul 22, 2013 10:04 AM, "Andreas Mueller" wrote: > Btw, there is a Pull-Request for imputation, that it highly relevant wrt > API: > https://github.com/scikit-learn/scikit-learn/pull/2148 > > > --

Re: [Scikit-learn-general] scikit-learn for Android?

2013-07-22 Thread Emanuele Olivetti
...and with the new Ubuntu Edge, which brings the full ubuntu integrated into Android, sklearn on smartphones seems even closer than expected :) http://www.indiegogo.com/projects/ubuntu-edge Best, Emanuele On 07/18/2013 04:38 PM, Emanuele Olivetti wrote: > On 07/17/2013 02:01 PM, Olivier Gris

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Andreas Mueller
On 07/22/2013 06:05 PM, Andreas Mueller wrote: > On 07/22/2013 05:20 PM, Arslan, Ali wrote: >> Sorry, That email was sent prematurely (thanks gmail) >> >> I was saying that labs' dimension was indicative of the error. Doing >> this solved it: >> >> labs = labs[:,0] Btw, the the easy way in this cas

Re: [Scikit-learn-general] resting fmri datasets in nklearn

2013-07-22 Thread Vlad Niculae
Also it looks like the problem is a similar confusion, you're trying to import some modules that don't exist in sklearn, maybe they exist in nilearn / nklearn / ni / whatever? (Sorry, I'm not familiar with that package). Yours, Vlad On Mon, Jul 22, 2013 at 5:55 PM, Olivier Grisel wrote: > This i

[Scikit-learn-general] resting fmri datasets in nklearn

2013-07-22 Thread Alle Meije Wink
dear all this is very much a user-level (not developer) question about sklearn: on the git repository of nilearn this example http://nilearn.github.io/auto_examples/plot_rest_clustering.html performs 3d clustering of a 4d file if I got this right then the 'nisl' in that example should have been

Re: [Scikit-learn-general] Talk video; python-future package [was: Python 3 port]

2013-07-22 Thread Ed Schofield
Hi Robert, hi all! > Thanks for your talk, it was very informative. I'm sorry I didn't get a > chance to speak to you more. > I went to the sprints first thing on Monday, but had to leave just before > lunch to catch my flight. Thanks! The talk is up here if anyone else is interested: h

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Andreas Mueller
On 07/22/2013 05:20 PM, Arslan, Ali wrote: > Sorry, That email was sent prematurely (thanks gmail) > > I was saying that labs' dimension was indicative of the error. Doing > this solved it: > > labs = labs[:,0] > > > It may seem obvious but switching from matlab, the difference between > (1000,1)

Re: [Scikit-learn-general] All scikit-learn tests now pass under Python3 on master

2013-07-22 Thread Ed Schofield
I'd like to add my congratulations and thanks to @justinvf and everyone else for the Python 3 port! :) Cheers, Ed On Wednesday, 17 July 2013 at 1:31 AM, Andreas Mueller wrote: > This is great news! > A big hand to everybody who made this possible :) > > On 07/16/2013 12:54 PM, Olivier G

Re: [Scikit-learn-general] resting fmri datasets in nklearn

2013-07-22 Thread Olivier Grisel
This is the mailing list for http://scikit-learn.org . You probably want to ask your question on the mailing list for http://nilearn.github.io/ The logo was stolen from scikit-learn and should be updated at some point. -- Olivier --

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Arslan, Ali
Hi Andreas, Alas you were right. On Mon, Jul 22, 2013 at 9:07 AM, Andreas Mueller wrote: > That seems to look good to me (I think labs might need to be (1000,) but > I'm not entirely sure). > > Can you reproduce your error on random / generated data? > A gist to reproduce the problem would be g

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Arslan, Ali
Sorry, That email was sent prematurely (thanks gmail) I was saying that labs' dimension was indicative of the error. Doing this solved it: labs = labs[:,0] It may seem obvious but switching from matlab, the difference between (1000,1) and (1000,) is still not perfectly clear to me. Hence I spen

Re: [Scikit-learn-general] Gracefully modeling missing values (nan's) in CART (classification or regression trees).

2013-07-22 Thread Andreas Mueller
Btw, there is a Pull-Request for imputation, that it highly relevant wrt API: https://github.com/scikit-learn/scikit-learn/pull/2148 -- See everything from the browser to the database with AppDynamics Get end-to-end visib

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Andreas Mueller
That seems to look good to me (I think labs might need to be (1000,) but I'm not entirely sure). Can you reproduce your error on random / generated data? A gist to reproduce the problem would be great. Cheers, Andy On 07/22/2013 03:02 PM, Arslan, Ali wrote: Hi Andy, ipdb> feats.dtype dtype(

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Arslan, Ali
Hi Andy, ipdb> feats.dtype dtype('float64') ipdb> type(feats) ipdb> feats.shape (1000, 20) ipdb> labs.dtype dtype('int8') ipdb> type(labs) ipdb> labs.shape (1000, 1) I think it could also be related to the values inside the feats matrix but I don't know what would cause these errors. I ma

[Scikit-learn-general] [SPRINT] Who will be there this week-end?

2013-07-22 Thread Nelle Varoquaux
Hi everyone, Because we are doing the sprint this week-end (saturday and sunda) in another venue (at tinyclues - I will provide more information on how to get there soon), we need to know how many people plan on coming to sort out how many chairs we need. Please, fill in this survey: http://www.doo

Re: [Scikit-learn-general] Gracefully modeling missing values (nan's) in CART (classification or regression trees).

2013-07-22 Thread Andreas Mueller
Hi John. I think there is no doubt that making use of missing values is beneficial in real applications. Also, you are right, decision trees are particularly good for handling them. This is more about implementation and API issues. Not raising an error doesn't mean it does something useful. We r

Re: [Scikit-learn-general] Error while building Scikit-learn in Windows (32-bit)

2013-07-22 Thread Vlad Niculae
Please also try with MSVC using the way I mentioned. Either way it's still strange; back when I was using windows I could build with mingw. Yours, Vlad On Mon, Jul 22, 2013 at 1:15 PM, Maheshakya Wijewardena wrote: > last release also doesn't work. It gives the same error. > The problem might b

Re: [Scikit-learn-general] Question about using sample weights to fit an svm

2013-07-22 Thread Andreas Mueller
On 07/22/2013 02:12 PM, Anne Dwyer wrote: > Andy, > > Shouldn't we also pull a ticket because using a uniform weight > distribution does not give the same results as running the SVM without > weights? (See my original post on the problem.) I think that should scale the C. If it doesn't, please al

Re: [Scikit-learn-general] Question about using sample weights to fit an svm

2013-07-22 Thread Anne Dwyer
Andy, Shouldn't we also pull a ticket because using a uniform weight distribution does not give the same results as running the SVM without weights? (See my original post on the problem.) Thanks, Anne On Mon, Jul 22, 2013 at 4:50 AM, Andreas Mueller wrote: > Hi Daniel. > Could you please ope

Re: [Scikit-learn-general] My talk from pycon AU is up

2013-07-22 Thread Harshal
Hi Olivier, Thanks for that information. I really appreciate it. Thanks, Harshal On Mon, Jul 15, 2013 at 9:00 PM, Olivier Grisel wrote: > 2013/7/14 Harshal : > > Thanks for that awesome talk. I have recently started to explore > > scikit-learn and find it pretty amazing. > > > > In that talk y

[Scikit-learn-general] RankScaler code

2013-07-22 Thread Joseph Turian
I wrote code for doing rank-scaling. This scaling technique is more robust than StandardScaler (unit variance, zero mean). https://github.com/scikit-learn/scikit-learn/pull/2176 I believe that "scale" is the wrong term for this operation. It's actually feature "normalization". This name-conflicts

[Scikit-learn-general] Gracefully modeling missing values (nan's) in CART (classification or regression trees).

2013-07-22 Thread John Prior
In the course of trying to build a model to predict home prices, I replaced missing values (nan's) with -inf's in order to allow a regression tree (RandomForestRegressor) to split the missing values into their own branch, and then I encountered this bug/error. Exception ValueError: ValueError('Atte

Re: [Scikit-learn-general] Error while building Scikit-learn in Windows (32-bit)

2013-07-22 Thread Maheshakya Wijewardena
last release also doesn't work. It gives the same error. The problem might be the unavailability of blas implementation in Windows as I figured out. Numpy doesn't have settings for blas. In Linux versions we need to get dependencies for blas (libatlas-dev) before builiding. But in Windows it's not

Re: [Scikit-learn-general] Error while building Scikit-learn in Windows (32-bit)

2013-07-22 Thread Vlad Niculae
The "unable to find vcvarsall.bat" error is because you don't have environment variables set appropriately. Click Start>Programs>Visual Studio C++ Express > Visual Studio Command Prompt and run the setup from there. Vlad On Mon, Jul 22, 2013 at 11:08 AM, Andreas Mueller wrote: > On 07/11/2013 0

Re: [Scikit-learn-general] Error while building Scikit-learn in Windows (32-bit)

2013-07-22 Thread Andreas Mueller
On 07/11/2013 04:29 PM, Maheshakya Wijewardena wrote: > I tried with MSVC. It gives me this error > > No module named msvccompiler in numpy.distutils; trying from distutils > customize MSVCCompiler > Missing compiler_cxx fix for MSVCCompiler > customize MSVCCompiler using build_clib > building 'lib

Re: [Scikit-learn-general] Question about using sample weights to fit an svm

2013-07-22 Thread Andreas Mueller
Hi Daniel. Could you please open an issue and maybe provide a sample script that demonstrates that changing the sample weights doesn't change the decision function? That sounds like a bug. Cheers, Andy On 07/21/2013 02:08 PM, Daniel Vainsencher wrote: I encountered similar problems. Weightin

Re: [Scikit-learn-general] weight issues in scikit-learn's adaboost

2013-07-22 Thread Andreas Mueller
Hi Ali. What is the type and size of your input and output vectors? (type, dtype, shape) Cheers, Andy On 07/22/2013 01:24 AM, Arslan, Ali wrote: Hi, I'm trying to use AdaBoostClassifier with a decision tree stump as the base classifier. I noticed that the weight adjustment done by AdaBoostCla