mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 21:45:27 +08:00
Drop machine_learning/xgboost_classifier.py and machine_learning/xgboost_regressor.py. Both were thin "how-to-use" wrappers around sklearn's XGBClassifier/XGBRegressor rather than from-scratch implementations, and the classifier's only doctest was already disabled (# THIS TEST IS BROKEN!!), so it was never exercised in CI. xgboost is one of the heaviest compiled dependencies in the tree (large wheel, needs OpenMP/libgomp at runtime, no free-threaded wheel yet), and gradient boosting is already implemented from scratch in machine_learning/gradient_boosting_classifier.py and gradient_boosting_regressor.py, so no algorithm coverage is lost. Removes the xgboost dependency from pyproject.toml, its (and its xgboost-only transitive dep nvidia-nccl-cu13) entries from uv.lock, and the two DIRECTORY.md links. Refs #15081