Skip to content

Commit

Permalink
Adapt sgd loss to newest scikit-learn version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Krebs committed Jul 20, 2023
1 parent 79b5976 commit 684afe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/2_multi_fidelity/2_sgd_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def train(self, config: Configuration, instance: str, seed: int = 0) -> float:

# SGD classifier using given configuration
clf = SGDClassifier(
loss="log",
loss="log_loss",
penalty="elasticnet",
alpha=config["alpha"],
l1_ratio=config["l1_ratio"],
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def train(self, config: Configuration, instance: str = "0-1", budget: float = 1,

# SGD classifier using given configuration
clf = SGDClassifier(
loss="log",
loss="log_loss",
penalty="elasticnet",
alpha=config["alpha"],
l1_ratio=config["l1_ratio"],
Expand Down

0 comments on commit 684afe3

Please sign in to comment.