From 99b59d900ed88501300f6fce078b001953a9aeea Mon Sep 17 00:00:00 2001 From: zyxue Date: Sun, 14 Feb 2021 14:46:11 -0800 Subject: [PATCH] [ci][python] apply isort to python-package/lightgbm/__init__.py #3958 --- python-package/lightgbm/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python-package/lightgbm/__init__.py b/python-package/lightgbm/__init__.py index c8bbb84844bf..46117904f61e 100644 --- a/python-package/lightgbm/__init__.py +++ b/python-package/lightgbm/__init__.py @@ -3,24 +3,24 @@ Contributors: https://github.com/microsoft/LightGBM/graphs/contributors. """ +import os + from .basic import Booster, Dataset, register_logger from .callback import (early_stopping, print_evaluation, record_evaluation, reset_parameter) -from .engine import cv, train, CVBooster - -import os +from .engine import CVBooster, cv, train try: - from .sklearn import LGBMModel, LGBMRegressor, LGBMClassifier, LGBMRanker + from .sklearn import LGBMClassifier, LGBMModel, LGBMRanker, LGBMRegressor except ImportError: pass try: - from .plotting import (plot_importance, plot_split_value_histogram, plot_metric, - plot_tree, create_tree_digraph) + from .plotting import (create_tree_digraph, plot_importance, plot_metric, + plot_split_value_histogram, plot_tree) except ImportError: pass try: - from .dask import DaskLGBMRegressor, DaskLGBMClassifier, DaskLGBMRanker + from .dask import DaskLGBMClassifier, DaskLGBMRanker, DaskLGBMRegressor except ImportError: pass