[python-package] remove unused imports (#5776)
This commit is contained in:
parent
1d22a9be1c
commit
c96e1ef283
1
.gitignore
vendored
1
.gitignore
vendored
@ -51,6 +51,7 @@ Debug
|
|||||||
#.Rbuildignore
|
#.Rbuildignore
|
||||||
R-package.Rproj
|
R-package.Rproj
|
||||||
*.cache*
|
*.cache*
|
||||||
|
.mypy_cache/
|
||||||
# java
|
# java
|
||||||
java/xgboost4j/target
|
java/xgboost4j/target
|
||||||
java/xgboost4j/tmp
|
java/xgboost4j/tmp
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
"""Helper utility function for customization."""
|
"""Helper utility function for customization."""
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import docutils
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None)
|
READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None)
|
||||||
|
|||||||
@ -5,8 +5,6 @@ Contributors: https://github.com/dmlc/xgboost/blob/master/CONTRIBUTORS.md
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
from .core import DMatrix, DeviceQuantileDMatrix, Booster
|
from .core import DMatrix, DeviceQuantileDMatrix, Booster
|
||||||
from .training import train, cv
|
from .training import train, cv
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#pylint: skip-file
|
#pylint: skip-file
|
||||||
import sys, argparse
|
import argparse
|
||||||
import xgboost as xgb
|
import xgboost as xgb
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from sklearn.datasets import make_classification
|
from sklearn.datasets import make_classification
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user