Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
simplymathematics committed Aug 4, 2024
1 parent 68896c2 commit 4f14350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deckard/base/scorer/scorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __hash__(self):

def score(self, ind, dep, **kwargs) -> float:
args = deepcopy(self.args)
kwargs = OmegaConf.merge(self.params, kwargs, list_merge_mode=ListMergeMode.REPLACE)
kwargs = OmegaConf.merge(
self.params, kwargs, list_merge_mode=ListMergeMode.REPLACE
)
new_args = []
for arg in args:
if arg in ["y_pred", "y_train", "y_test"]:
Expand Down
2 changes: 2 additions & 0 deletions examples/gzip/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
from hydra.experimental.callback import Callback
import argparse
from typing import Union

storage = "sqlite:///optuna.db"
study_name = "gzip_knn_20-0"
metric_names = ["accuracy"]
directions = ["maximize"]
output_file = "optuna.csv"


@dataclass
class OptunaStudyDumpCallback(Callback):
def __init__(
Expand Down

0 comments on commit 4f14350

Please sign in to comment.