Skip to content

Commit

Permalink
setup full study
Browse files Browse the repository at this point in the history
  • Loading branch information
timovdk committed Jan 24, 2025
1 parent cced274 commit a4e1006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asreview2-optuna/feature_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def tfidf_params(trial: optuna.trial.FrozenTrial):
min_df = trial.suggest_int("tfidf__min_df", 1, 10)

# trial.suggest_categorical does not support tuples, so choose max_ngram_range first, then create a tuple.
max_ngram_range = trial.suggest_int("tfidf__max_ngram_range", 1, 3)
ngram_range = (1, max_ngram_range)
#max_ngram_range = trial.suggest_int("tfidf__max_ngram_range", 1, 3)
ngram_range = (1, 2)

sublinear_tf = trial.suggest_categorical("tfidf__sublinear_tf", [True, False])

Expand Down
4 changes: 2 additions & 2 deletions asreview2-optuna/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
from feature_extractors import feature_extractor_params, feature_extractors

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

0 comments on commit a4e1006

Please sign in to comment.