[scikit-learn] imbalanced classes: class_weight

2018-06-19 Thread S Hamidizade
Hi I would appreciate if you could let me know what is the best way to categorize the approaches which have been developed to deal with imbalance class problem? *This article categorizes them into:* 1. Preprocessing:

Re: [scikit-learn] imbalanced classes: class_weight

2018-06-20 Thread S Hamidizade
Hi Thanks a lot for your time and consideration. I have seen imblearn but my question is not related to it. Best regards, On Tue, Jun 19, 2018 at 9:04 PM, Christos Aridas wrote: > Hi, > > Have you seen http://imbalanced-learn.org? > > Best, > Chris > > On Tue, 19 Jun

[scikit-learn] imbalanced data

2018-04-11 Thread S Hamidizade
Hi Could you please let me know if the algorithms (including Robust Under-sampling, Cluster-Classify, MKL for high-class skew, ...) discussed in the following thesis have been implemented in Python? Robust Learning with Highly Skewed Category Distributions by Selen Uguroglu

[scikit-learn] Validation curve - Learning curve

2018-03-29 Thread S Hamidizade
Dear Mr. / Ms. I would appreciate if you could let me know in the following example code: from collections import Counter from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split,StratifiedKFold,learning_curve,validation_curve,GridSearchCV from

[scikit-learn] Imblearn: SMOTENC

2019-01-20 Thread S Hamidizade
Dear Scikit-learners Hi. I would greatly appreciate if you could let me know how to use SMOTENC. I wrote: num_indices1 = list(X.iloc[:,np.r_[0:94,95,97,100:123]].columns.values) cat_indices1 = list(X.iloc[:,np.r_[94,96,98,99,123:160]].columns.values) print(len(num_indices1))

Re: [scikit-learn] Imblearn: SMOTENC

2019-01-26 Thread S Hamidizade
for us to test it. > From the error message, I can understand that you have 161 features and > require a feature above the index 160. > > > > On Thu, 24 Jan 2019 at 16:19, S Hamidizade wrote: > >> Thanks. Unfortunately, now the error is: >> ValueError: Some of t

Re: [scikit-learn] Imblearn: SMOTENC

2019-01-23 Thread S Hamidizade
eps = [ > ('select', MultiColumn(num_indices1)), > ('scale', StandardScaler()) > ])) > ])), > ('clf', rg) > ] > ) > > pipeline_with_resampling = > make_pipeline(SMOTENC(categorical_features=cat_indices_1), pipeline) > > >

Re: [scikit-learn] Imblearn: SMOTENC

2019-01-24 Thread S Hamidizade
Thanks. Unfortunately, now the error is: ValueError: Some of the categorical indices are out of range. Indices should be between 0 and 160. Best regards, On Sun, Jan 20, 2019 at 8:31 PM S Hamidizade wrote: > Dear Scikit-learners > Hi. > > I would greatly appreciate if you could let