Fix with black 24.1.1. (#10014)

This commit is contained in:
Jiaming Yuan
2024-01-30 17:24:11 +08:00
committed by GitHub
parent 65d7bf2dfe
commit 54b71c8fba
46 changed files with 49 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ Demo for using and defining callback functions
.. versionadded:: 1.3.0
"""
import argparse
import os
import tempfile

View File

@@ -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

View File

@@ -17,6 +17,7 @@ See Also
- :ref:`sphx_glr_python_examples_cat_pipeline.py`
"""
from typing import Tuple
import numpy as np

View File

@@ -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

View File

@@ -2,6 +2,7 @@
Demo for prediction using individual trees and model slices
===========================================================
"""
import os
import numpy as np

View File

@@ -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

View File

@@ -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

View File

@@ -9,6 +9,7 @@ Created on 1 Apr 2015
@author: Jamie Hall
"""
import pickle
import numpy as np

View File

@@ -2,6 +2,7 @@
Demo for using xgboost with sklearn
===================================
"""
import multiprocessing
from sklearn.datasets import fetch_california_housing

View File

@@ -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