Skip to content

Commit

Permalink
setup demo 2
Browse files Browse the repository at this point in the history
  • Loading branch information
timovdk committed Jan 24, 2025
1 parent 433dbee commit dd77170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions asreview2-optuna/classifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def svm_params(trial: optuna.trial.FrozenTrial):

def random_forest_params(trial: optuna.trial.FrozenTrial):
# Use normal distribution for n_estimators (n_estimators effect is linear)
n_estimators = trial.suggest_int("rf__n_estimators", 50, 500)
n_estimators = trial.suggest_int("rf__n_estimators", 50, 200)

# Use normal distribution for max_features (max_features effect is linear)
max_features = trial.suggest_int("rf__max_features", 2, 20)
max_features = trial.suggest_categorical("rf__max_features", ["sqrt", "log2"])
return {"n_estimators": n_estimators, "max_features": max_features}


Expand Down
2 changes: 1 addition & 1 deletion asreview2-optuna/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from feature_extractors import feature_extractor_params, feature_extractors

# Study variables
VERSION = 1
VERSION = 2
STUDY_SET = "demo"
PICKLE_FOLDER_PATH = Path("synergy-dataset", "pickles")
CLASSIFIER_TYPE = "rf" # Options: "nb", "log", "svm", "rf"
Expand Down

0 comments on commit dd77170

Please sign in to comment.