From 85f59155faa08618dfbd9ad5709fea50ea874529 Mon Sep 17 00:00:00 2001 From: Tanushree Tunstall Date: Thu, 28 Jul 2022 15:28:31 +0100 Subject: [PATCH] uncommented all models for a full run --- scripts/ml/ml_functions/MultClfs_CVs.py | 62 ++++++++++++------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/scripts/ml/ml_functions/MultClfs_CVs.py b/scripts/ml/ml_functions/MultClfs_CVs.py index 2d0fb6e..c862c80 100755 --- a/scripts/ml/ml_functions/MultClfs_CVs.py +++ b/scripts/ml/ml_functions/MultClfs_CVs.py @@ -246,37 +246,37 @@ def MultModelsCl_CVs(input_df # Specify multiple Classification Models #====================================================== models = [('AdaBoost Classifier' , AdaBoostClassifier(**rs) ) - # , ('Bagging Classifier' , BaggingClassifier(**rs, **njobs, bootstrap = True, oob_score = True, verbose = 3, n_estimators = 100) ) - # #, ('Bernoulli NB' , BernoulliNB() ) # pks Naive Bayes, CAUTION - # , ('Complement NB' , ComplementNB() ) - # , ('Decision Tree' , DecisionTreeClassifier(**rs) ) - # , ('Extra Tree' , ExtraTreeClassifier(**rs) ) - # , ('Extra Trees' , ExtraTreesClassifier(**rs) ) - # , ('Gradient Boosting' , GradientBoostingClassifier(**rs) ) - # , ('Gaussian NB' , GaussianNB() ) - # , ('Gaussian Process' , GaussianProcessClassifier(**rs) ) - # , ('K-Nearest Neighbors' , KNeighborsClassifier() ) - # , ('LDA' , LinearDiscriminantAnalysis() ) - # , ('Logistic Regression' , LogisticRegression(**rs) ) - # , ('Logistic RegressionCV' , LogisticRegressionCV(cv = 3, **rs)) - # , ('MLP' , MLPClassifier(max_iter = 500, **rs) ) - # , ('Multinomial NB' , MultinomialNB() ) - # , ('Passive Aggresive' , PassiveAggressiveClassifier(**rs, **njobs) ) - # , ('QDA' , QuadraticDiscriminantAnalysis() ) - # , ('Random Forest' , RandomForestClassifier(**rs, n_estimators = 1000, **njobs ) ) - # , ('Random Forest2' , RandomForestClassifier(min_samples_leaf = 5 - # , n_estimators = 1000 - # , bootstrap = True - # , oob_score = True - # , **njobs - # , **rs - # , max_features = 'auto') ) - # , ('Ridge Classifier' , RidgeClassifier(**rs) ) - # , ('Ridge ClassifierCV' , RidgeClassifierCV(cv = 3) ) - # , ('SVC' , SVC(**rs) ) - # , ('Stochastic GDescent' , SGDClassifier(**rs, **njobs) ) - , ('XGBoost' , XGBClassifier(**rs, verbosity = 0, use_label_encoder = False, **njobs) ) - , ('Dummy Classifier' , DummyClassifier(strategy = 'most_frequent') ) + , ('Bagging Classifier' , BaggingClassifier(**rs, **njobs, bootstrap = True, oob_score = True, verbose = 3, n_estimators = 100) ) + #, ('Bernoulli NB' , BernoulliNB() ) # pks Naive Bayes, CAUTION + , ('Complement NB' , ComplementNB() ) + , ('Decision Tree' , DecisionTreeClassifier(**rs) ) + , ('Extra Tree' , ExtraTreeClassifier(**rs) ) + , ('Extra Trees' , ExtraTreesClassifier(**rs) ) + , ('Gradient Boosting' , GradientBoostingClassifier(**rs) ) + , ('Gaussian NB' , GaussianNB() ) + , ('Gaussian Process' , GaussianProcessClassifier(**rs) ) + , ('K-Nearest Neighbors' , KNeighborsClassifier() ) + , ('LDA' , LinearDiscriminantAnalysis() ) + , ('Logistic Regression' , LogisticRegression(**rs) ) + , ('Logistic RegressionCV' , LogisticRegressionCV(cv = 3, **rs)) + , ('MLP' , MLPClassifier(max_iter = 500, **rs) ) + , ('Multinomial NB' , MultinomialNB() ) + , ('Passive Aggresive' , PassiveAggressiveClassifier(**rs, **njobs) ) + , ('QDA' , QuadraticDiscriminantAnalysis() ) + , ('Random Forest' , RandomForestClassifier(**rs, n_estimators = 1000, **njobs ) ) + , ('Random Forest2' , RandomForestClassifier(min_samples_leaf = 5 + , n_estimators = 1000 + , bootstrap = True + , oob_score = True + , **njobs + , **rs + , max_features = 'auto') ) + , ('Ridge Classifier' , RidgeClassifier(**rs) ) + , ('Ridge ClassifierCV' , RidgeClassifierCV(cv = 3) ) + , ('SVC' , SVC(**rs) ) + , ('Stochastic GDescent' , SGDClassifier(**rs, **njobs) ) + , ('XGBoost' , XGBClassifier(**rs, verbosity = 0, use_label_encoder = False, **njobs) ) + , ('Dummy Classifier' , DummyClassifier(strategy = 'most_frequent') ) ] mm_skf_scoresD = {}