Skip to content

Commit

Permalink
switch to demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
timovdk committed Jan 28, 2025
1 parent 375e5da commit a511ddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions asreview2-optuna/classifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ def random_forest_params(trial: optuna.trial.FrozenTrial):
n_estimators = trial.suggest_int("rf__n_estimators", 50, 200)

# Use normal distribution for max_features (max_features effect is linear)
max_features = (
None # trial.suggest_categorical("rf__max_features", ["sqrt", "log2"])
)
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 @@ -20,7 +20,7 @@

# Study variables
VERSION = 1
STUDY_SET = "full"
STUDY_SET = "demo"
CLASSIFIER_TYPE = "rf" # Options: "nb", "log", "svm", "rf"
FEATURE_EXTRACTOR_TYPE = "bge-m3" # Options: "tfidf", "onehot", "labse", "bge-m3"
PICKLE_FOLDER_PATH = Path("synergy-dataset", f"pickles_{FEATURE_EXTRACTOR_TYPE}")
Expand Down

0 comments on commit a511ddb

Please sign in to comment.