Remove deprecated DeviceQuantileDMatrix. (#10491)
This commit is contained in:
parent
bed3695beb
commit
2d88d17008
@ -5,15 +5,7 @@ Contributors: https://github.com/dmlc/xgboost/blob/master/CONTRIBUTORS.md
|
|||||||
|
|
||||||
from . import tracker # noqa
|
from . import tracker # noqa
|
||||||
from . import collective, dask
|
from . import collective, dask
|
||||||
from .core import (
|
from .core import Booster, DataIter, DMatrix, QuantileDMatrix, _py_version, build_info
|
||||||
Booster,
|
|
||||||
DataIter,
|
|
||||||
DeviceQuantileDMatrix,
|
|
||||||
DMatrix,
|
|
||||||
QuantileDMatrix,
|
|
||||||
_py_version,
|
|
||||||
build_info,
|
|
||||||
)
|
|
||||||
from .tracker import RabitTracker # noqa
|
from .tracker import RabitTracker # noqa
|
||||||
from .training import cv, train
|
from .training import cv, train
|
||||||
|
|
||||||
@ -38,7 +30,6 @@ __version__ = _py_version()
|
|||||||
__all__ = [
|
__all__ = [
|
||||||
# core
|
# core
|
||||||
"DMatrix",
|
"DMatrix",
|
||||||
"DeviceQuantileDMatrix",
|
|
||||||
"QuantileDMatrix",
|
"QuantileDMatrix",
|
||||||
"Booster",
|
"Booster",
|
||||||
"DataIter",
|
"DataIter",
|
||||||
|
|||||||
@ -1635,20 +1635,6 @@ class QuantileDMatrix(DMatrix):
|
|||||||
self.handle = handle
|
self.handle = handle
|
||||||
|
|
||||||
|
|
||||||
class DeviceQuantileDMatrix(QuantileDMatrix):
|
|
||||||
"""Use `QuantileDMatrix` instead.
|
|
||||||
|
|
||||||
.. deprecated:: 1.7.0
|
|
||||||
|
|
||||||
.. versionadded:: 1.1.0
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
||||||
warnings.warn("Please use `QuantileDMatrix` instead.", FutureWarning)
|
|
||||||
super().__init__(*args, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
Objective = Callable[[np.ndarray, DMatrix], Tuple[np.ndarray, np.ndarray]]
|
Objective = Callable[[np.ndarray, DMatrix], Tuple[np.ndarray, np.ndarray]]
|
||||||
Metric = Callable[[np.ndarray, DMatrix], Tuple[str, float]]
|
Metric = Callable[[np.ndarray, DMatrix], Tuple[str, float]]
|
||||||
|
|
||||||
|
|||||||
@ -711,20 +711,6 @@ class DaskQuantileDMatrix(DaskDMatrix):
|
|||||||
return args
|
return args
|
||||||
|
|
||||||
|
|
||||||
class DaskDeviceQuantileDMatrix(DaskQuantileDMatrix):
|
|
||||||
"""Use `DaskQuantileDMatrix` instead.
|
|
||||||
|
|
||||||
.. deprecated:: 1.7.0
|
|
||||||
|
|
||||||
.. versionadded:: 1.2.0
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
||||||
warnings.warn("Please use `DaskQuantileDMatrix` instead.", FutureWarning)
|
|
||||||
super().__init__(*args, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def _create_quantile_dmatrix(
|
def _create_quantile_dmatrix(
|
||||||
feature_names: Optional[FeatureNames],
|
feature_names: Optional[FeatureNames],
|
||||||
feature_types: Optional[Union[Any, List[Any]]],
|
feature_types: Optional[Union[Any, List[Any]]],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user