added validated params for all classifiers

This commit is contained in:
Tanushree Tunstall 2022-05-26 03:20:54 +01:00
parent 00633872f5
commit b5d29dd449
5 changed files with 245 additions and 617 deletions

View file

@ -25,8 +25,16 @@ ds_lrD = fsgs(input_df = X
, estimator = LogisticRegression(**rs)
, var_type = 'mixed')
# RF: without fs + hyperparam
rf_allF = fsgs(input_df = X
, target = y
, param_gridLd = param_grid_rf
, blind_test_df = X_bts
, blind_test_target = y_bts
, estimator = RandomForestClassifier(**rs, **njobs, bootstrap = True, oob_score = True)
, var_type = 'mixed')
#Fitting 10 folds for each of 31104 candidates, totalling 311040 fits
@ -44,4 +52,5 @@ ds_lrD = fsgs(input_df = X
# file = 'LR_FS.json'
# with open(file, 'r') as f:
# data = json.load(f)
##############################################################################
##############################################################################