forked from Nicolas-Radomski/GenomicBasedClassification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtuning_parameters_MLP.txt
More file actions
45 lines (40 loc) · 2.71 KB
/
tuning_parameters_MLP.txt
File metadata and controls
45 lines (40 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
# --- Feature selection (SelectKBest) ---
# used only to modify selected SKB behavior
'feature_selection__k': [25, 50], # number of top features to select based on univariate scores
'feature_selection__score_func': [mutual_info_classif], # scoring function estimating mutual information for classification tasks
# --- Feature selection (SelectFromModel with Lasso Logistic Regression) ---
# used only to modify laSFM behavior
#'feature_selection__threshold': [-float('inf')], # keep all non-zero weighted features
#'feature_selection__max_features': [25, 50], # number of retained features
#'feature_selection__estimator__penalty': ['l1'], # L1 regularization (lasso)
#'feature_selection__estimator__solver': ['liblinear'], # required for L1 penalty
#'feature_selection__estimator__C': [0.1, 1.0], # inverse regularization strength
#'feature_selection__estimator__max_iter': [300], # iterations for convergence
# --- Feature selection (SelectFromModel with ElasticNet Logistic Regression) ---
# used only to modify enSFM behavior
#'feature_selection__threshold': [-float('inf')], # keep all non-zero weighted features
#'feature_selection__max_features': [25, 50], # number of retained features
#'feature_selection__estimator__penalty': ['elasticnet'], # elasticnet regularization
#'feature_selection__estimator__solver': ['saga'], # required for L1/L2 penalties
#'feature_selection__estimator__l1_ratio': [0.5], # mix of L1/L2 regularization
#'feature_selection__estimator__C': [1.0], # inverse regularization strength
# --- Feature selection (SelectFromModel with Ridge-regularized Logistic Regression) ---
# used only to modify riSFM behavior
#'feature_selection__threshold': [-float('inf')], # keep all features (no threshold cutoff)
#'feature_selection__max_features': [25, 50], # number of retained features
#'feature_selection__estimator__penalty': ['l2'], # L2 regularization (ridge)
#'feature_selection__estimator__solver': ['lbfgs'], # stable solver commonly used for L2-regularized logistic regression
#'feature_selection__estimator__C': [0.5, 1.0], # inverse regularization strength
# --- Feature selection (SelectFromModel with RandomForestClassifier) ---
# used only to modify rfSFM behavior
#'feature_selection__threshold': [-float('inf')], # keep all non-zero importance features
#'feature_selection__max_features': [25, 50], # limit the number of features kept based on feature importance
#'feature_selection__estimator__n_estimators': [200], # number of trees
#'feature_selection__estimator__max_depth': [5, 10], # tree depth control
# --- Model tuning (MLPClassifier) ---
# used only to modify MLP behavior
'model__hidden_layer_sizes': [(50,), (100,)], # hidden layers
'model__alpha': [0.001], # regularization
'model__max_iter': [500] # iterations
}