[Scikit-learn-general] GridSearch with sample_weights

2013-05-31 Thread Peter Retzlaff
Hello everyone, I'm trying to execute a grid search with the GridSearchCV class (for an AdaBoostClassifier) and want to use a custom sample_weight vector to begin with. However, I can't figure out, how to do this. Passing the parameter to GridSearchCV's fit()-method gives me the message, that

Re: [Scikit-learn-general] Creating numpy arrays

2013-05-31 Thread Wei Zhang
targets is the class label for the samples. Since you have 178 samples, targets' shape should be 178*1. On May 21, 2013, at 3:40 PM, Paulo Nuin paulo.n...@gmail.com wrote: Hi Lars Thanks a lot for the help so far. It seems that your method solves part of my troubles. In my case X

Re: [Scikit-learn-general] Creating numpy arrays

2013-05-31 Thread Andreas Mueller
On 05/21/2013 09:40 PM, Paulo Nuin wrote: Hi Lars Thanks a lot for the help so far. It seems that your method solves part of my troubles. In my case X contains all lines that are not NegCtrl and y the NegCtrl. Currently I am just trying to load the sets into bumpy arrays and run something