Replace deprecated arguments with callback-ish way in lightgbm test
Motivation
Since lightgbm v3.3.0, train/cv's arguments have been deprecated as described in https://github.com/optuna/optuna/issues/3013. It would be great to replace such deprecated arguments with recommended way by lightgbm.
Description
Replace the deprecated arguments with callback-ish way. The target lines are given in https://github.com/optuna/optuna/pull/3014#issuecomment-949362020.
See also https://github.com/optuna/optuna-examples/pull/64/files for the concrete replacement.
Alternatives (optional)
Additional context (optional)
We do not need to care about the older lightgbm version.
This issue has not seen any recent activity.
This issue has not seen any recent activity.
This issue was closed automatically because it had not seen any recent activity. If you want to discuss it, you can reopen it freely.