Skip to content

Commit

Permalink
Merge pull request #138 from nabenabe0928/breaking/move-positional-ar…
Browse files Browse the repository at this point in the history
…gs-of-lgbm-tuner

Move positional args of LightGBM tuner
  • Loading branch information
not522 authored Jul 9, 2024
2 parents 214578c + b61a9a3 commit f1076a6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion optuna_integration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
from optuna_integration.catboost import CatBoostPruningCallback
from optuna_integration.chainer import ChainerPruningExtension
from optuna_integration.chainermn import ChainerMNStudy
from optuna_integration.comet import CometCallback
from optuna_integration.cma import PyCmaSampler
from optuna_integration.comet import CometCallback
from optuna_integration.dask import DaskStorage
from optuna_integration.fastaiv2 import FastAIPruningCallback
from optuna_integration.fastaiv2 import FastAIV2PruningCallback
Expand Down
2 changes: 1 addition & 1 deletion optuna_integration/_lightgbm_tuner/_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def train(
study: Study | None = None,
optuna_callbacks: list[Callable[[Study, FrozenTrial], None]] | None = None,
model_dir: str | None = None,
show_progress_bar: bool = True,
*,
show_progress_bar: bool = True,
optuna_seed: int | None = None,
) -> "lgb.Booster":
"""Wrapper of LightGBM Training API to tune hyperparameters.
Expand Down
6 changes: 3 additions & 3 deletions optuna_integration/_lightgbm_tuner/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ def __init__(
sample_size: int | None = None,
study: optuna.study.Study | None = None,
optuna_callbacks: list[Callable[[Study, FrozenTrial], None]] | None = None,
*,
show_progress_bar: bool = True,
model_dir: str | None = None,
*,
optuna_seed: int | None = None,
) -> None:
_imports.check()
Expand Down Expand Up @@ -736,8 +736,8 @@ def __init__(
study: optuna.study.Study | None = None,
optuna_callbacks: list[Callable[[Study, FrozenTrial], None]] | None = None,
model_dir: str | None = None,
show_progress_bar: bool = True,
*,
show_progress_bar: bool = True,
optuna_seed: int | None = None,
) -> None:
super().__init__(
Expand Down Expand Up @@ -919,10 +919,10 @@ def __init__(
sample_size: int | None = None,
study: optuna.study.Study | None = None,
optuna_callbacks: list[Callable[[Study, FrozenTrial], None]] | None = None,
*,
show_progress_bar: bool = True,
model_dir: str | None = None,
return_cvbooster: bool = False,
*,
optuna_seed: int | None = None,
) -> None:
super().__init__(
Expand Down
1 change: 0 additions & 1 deletion tests/lightgbm/test_optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Any
from typing import TYPE_CHECKING
from unittest import mock
import warnings

import numpy as np
import optuna
Expand Down

0 comments on commit f1076a6

Please sign in to comment.