Skip to content

Commit

Permalink
Setup labse
Browse files Browse the repository at this point in the history
  • Loading branch information
timovdk committed Jan 28, 2025
1 parent 82a72a3 commit aab5428
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions asreview2-optuna/classifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from asreview.models.classifiers import (
LogisticClassifier,
NaiveBayesClassifier,
RandomForestClassifier,
SVMClassifier,
)

Expand Down Expand Up @@ -41,7 +40,9 @@ 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 = trial.suggest_categorical("rf__max_features", ["sqrt", "log2"])
max_features = (
None # trial.suggest_categorical("rf__max_features", ["sqrt", "log2"])
)
return {"n_estimators": n_estimators, "max_features": max_features}


Expand Down Expand Up @@ -70,6 +71,7 @@ def __init__(self, n_estimators=100, max_features=10, **kwargs):
**kwargs,
)


classifiers = {
"nb": NaiveBayesClassifier,
"log": LogisticClassifier,
Expand Down

0 comments on commit aab5428

Please sign in to comment.