Fix with black 24.1.1. (#10014)
This commit is contained in:
@@ -4,6 +4,7 @@ Demo for using and defining callback functions
|
||||
|
||||
.. versionadded:: 1.3.0
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
@@ -13,6 +13,7 @@ See Also
|
||||
- :ref:`sphx_glr_python_examples_cat_in_the_dat.py`
|
||||
|
||||
"""
|
||||
|
||||
from typing import List, Tuple
|
||||
|
||||
import numpy as np
|
||||
|
||||
@@ -17,6 +17,7 @@ See Also
|
||||
- :ref:`sphx_glr_python_examples_cat_pipeline.py`
|
||||
|
||||
"""
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
import numpy as np
|
||||
|
||||
@@ -11,6 +11,7 @@ instead of Quantile DMatrix. The feature is not ready for production use yet.
|
||||
See :doc:`the tutorial </tutorials/external_memory>` for more details.
|
||||
|
||||
"""
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
from typing import Callable, List, Tuple
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Demo for prediction using individual trees and model slices
|
||||
===========================================================
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
import numpy as np
|
||||
|
||||
@@ -15,6 +15,7 @@ position debiasing training.
|
||||
For an overview of learning to rank in XGBoost, please see
|
||||
:doc:`Learning to Rank </tutorials/learning_to_rank>`.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
|
||||
@@ -13,6 +13,7 @@ https://scikit-learn.org/stable/auto_examples/ensemble/plot_gradient_boosting_qu
|
||||
crossing can happen due to limitation in the algorithm.
|
||||
|
||||
"""
|
||||
|
||||
import argparse
|
||||
from typing import Dict
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ Created on 1 Apr 2015
|
||||
|
||||
@author: Jamie Hall
|
||||
"""
|
||||
|
||||
import pickle
|
||||
|
||||
import numpy as np
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Demo for using xgboost with sklearn
|
||||
===================================
|
||||
"""
|
||||
|
||||
import multiprocessing
|
||||
|
||||
from sklearn.datasets import fetch_california_housing
|
||||
|
||||
@@ -4,6 +4,7 @@ Collection of examples for using xgboost.spark estimator interface
|
||||
|
||||
@author: Weichen Xu
|
||||
"""
|
||||
|
||||
import sklearn.datasets
|
||||
from pyspark.ml.evaluation import MulticlassClassificationEvaluator, RegressionEvaluator
|
||||
from pyspark.ml.linalg import Vectors
|
||||
|
||||
Reference in New Issue
Block a user