Re: [Scikit-learn-general] gridsearchCV - overfitting

2016-05-12 Thread A neuman
y own. GridsearchCV give me just one pool of params, if they are overfitting, i cant use gridsearchCV? Just having problems to understand this. On 12 May 2016 at 13:45, Olivier Grisel wrote: > 2016-05-12 13:02 GMT+02:00 A neuman : > > Thanks for the answer! > > > > but h

Re: [Scikit-learn-general] gridsearchCV - overfitting

2016-05-12 Thread A neuman
Thanks for the answer! but how should i check that its overfitted or not? best, -- Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition

[Scikit-learn-general] gridsearchCV - overfitting

2016-05-12 Thread A neuman
Hello everyone, I'm having a bit trouble with the parameters that I've got from gridsearchCV. For example: If i'm using the parameter what i've got from grid seardh CV for example on RF oder k-nn and i test the model on the train set, i get everytime an AUC value about 1.00 or 0.99. The dataset

Re: [Scikit-learn-general] k-NN user defined distance

2016-01-12 Thread A neuman
t, On 12 January 2016 at 19:18, Sebastian Raschka wrote: > Hi, I am not sure how your custom metric works, but would a np.where(x >= > 0.5, 1., 0.) work in your case? > > On Jan 12, 2016, at 1:08 PM, A neuman wrote: > > Sorry, thats not right what I wrote: > X: &

Re: [Scikit-learn-general] k-NN user defined distance

2016-01-12 Thread A neuman
. 0. 0. 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 1. 0. 0. 1. 0. 1. 0. 0. 1. 0. 1. 1. 0. 1. 1. 1. 1. 0.] and so on.. but X should be also containing 1's and 0's. best, On 12 January 2016 at 19:04, A neuman wrote: > Hey, > > I Have an another problem, >

Re: [Scikit-learn-general] k-NN user defined distance

2016-01-12 Thread A neuman
have to count the occurences from 0's and 1's in x and y. And if there are some other arrays lik 0.636. I dont get the right solution. So in general, i only want the array with 1 and 0 best, On 9 January 2016 at 03:58, A neuman wrote: > Ah, that helped me a lot!!!

Re: [Scikit-learn-general] k-NN user defined distance

2016-01-08 Thread A neuman
ighbors(X) > >>> distances > array([[ 0., 1.], >[ 0., 1.], >[ 0., 1.41421356], > [ 0. , 1.], >[ 0., 1.], >[ 0., 1.41421356]]) > > (alt. you could

[Scikit-learn-general] k-NN user defined distance

2016-01-08 Thread A neuman
Hello everyone, I actually want to use the KNeighboursClassifier, with my own distances. in the Documentation stands the following: [callable] : a user-defined function which accepts an array of distances, and returns an array of the same shape containing the weights. I just dont know, how shou