[scikit-learn] extraction of grid search values

2021-01-05 Thread Glenn Schultz via scikit-learn
All, I have a grid search of gradient boosting classifier. All works well the best model is extracted and predict works on the model. I would like to extract the cv_results_ My set-up is pretty standard gbclassifier = GridSearchCV(GradientBoostingClassifier(), paramet

[scikit-learn] using numpy repeat

2019-10-14 Thread Glenn Schultz via scikit-learn
I am tying to repeat an array 3 times using the following numpy.repeat(numpy.linspace(-.5, 3, 8), 3) axis = 0)   although this repeats each element 3 times sequentially. I trying to repeat the array  -.5 -0 .5 ... -5 -0 .5 any suggestions to accomplish this are appreciated.   I am relatively s

Re: [scikit-learn] question using GridSearchCV

2019-07-24 Thread Glenn Schultz via scikit-learn
arameters, versose = 3m > n_jobs = 4), scoring='roc_auc') > > > >> On 7/24/19 1:24 PM, Glenn Schultz via scikit-learn wrote: >> I am using GBClassifier, the below works if I use the default accuracy but >> it fails using roc_auc or roc_auc_score. I have fou

[scikit-learn] question using GridSearchCV

2019-07-24 Thread Glenn Schultz via scikit-learn
I am using GBClassifier, the below works if I use the default accuracy but it fails using roc_auc or roc_auc_score. I have found many examples to work with but for the life of me I can’t get it two work with roc_auc. What am I doing wrong. from sklearn.ensemble import GradientBoostingClassifi