[scikit-learn] Clarification regarding SGDClassifier

2017-08-27 Thread Shabie Iqbal
Dear all, could anyone of you kindly answer this question I posted on Stackoverflow: https://stackoverflow.com/questions/45900330/sklearn-sgdclassifiers-decision-function-odd-behavior Best, Shabie ___ scikit-learn mailing list scikit-learn@python.org h

Re: [scikit-learn] Clarification regarding SGDClassifier

2017-08-27 Thread Robert Slater
I think your use of "X" in X_mod should be "X_train" instead, as X_mod is currently using unshuffled indices while X_check uses the shuffled indices. Virus-free. www.avast.co

[scikit-learn] Decision stubs?

2017-08-27 Thread Stuart Reynolds
Is it possible to efficiently get at the branch statistics that decision tree algorithms iterate over in scikit? For example if the root population has the class counts in the output vector: c0: 5000 c1: 500 Then I'd like to iterate over: # For a boolean (2 valued category) f1=True:

Re: [scikit-learn] Clarification regarding SGDClassifier

2017-08-27 Thread Shabie Iqbal
Got it… Thanks! Sent from Mail for Windows 10 From: Robert Slater Sent: Monday, August 28, 2017 12:24 AM To: Scikit-learn mailing list Subject: Re: [scikit-learn] Clarification regarding SGDClassifier I think your use of "X" in X_mod should be "X_train" instead, as X_mod is currently using unsh

[scikit-learn] Getting weight coefficient of logistic regression from a pipeline

2017-08-27 Thread Raga Markely
Hello, I am wondering if it's possible to get the weight coefficients of logistic regression from a pipeline? For instance, I have the followings: > clf_lr = LogisticRegression(penalty='l1', C=0.1) > pipe_lr = Pipeline([['sc', StandardScaler()], ['clf', clf_lr]]) > pipe_lr.fit(X, y) Does pipe_

Re: [scikit-learn] Getting weight coefficient of logistic regression from a pipeline

2017-08-27 Thread Joel Nothman
No, we do not have a way to get the coefficients with respect to the input (pre-scaling) space. On 28 August 2017 at 13:20, Raga Markely wrote: > Hello, > > I am wondering if it's possible to get the weight coefficients of logistic > regression from a pipeline? > > For instance, I have the follo

Re: [scikit-learn] Getting weight coefficient of logistic regression from a pipeline

2017-08-27 Thread Raga Markely
No problem, thank you! Best, Raga On Mon, Aug 28, 2017 at 12:01 AM, Joel Nothman wrote: > No, we do not have a way to get the coefficients with respect to the input > (pre-scaling) space. > > On 28 August 2017 at 13:20, Raga Markely wrote: > >> Hello, >> >> I am wondering if it's possible to g