Skip to content

Commit 30f321f

Browse files
Remove xgboost demos and dependency (#15219)
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
1 parent ca133c7 commit 30f321f

5 files changed

Lines changed: 0 additions & 177 deletions

File tree

DIRECTORY.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,6 @@
696696
* [Support Vector Machines](machine_learning/support_vector_machines.py)
697697
* [T Stochastic Neighbour Embedding](machine_learning/t_stochastic_neighbour_embedding.py)
698698
* [Word Frequency Functions](machine_learning/word_frequency_functions.py)
699-
* [Xgboost Classifier](machine_learning/xgboost_classifier.py)
700-
* [Xgboost Regressor](machine_learning/xgboost_regressor.py)
701699

702700
## [Maths](maths)
703701
* [Abs](maths/abs.py)

machine_learning/xgboost_classifier.py

Lines changed: 0 additions & 79 deletions
This file was deleted.

machine_learning/xgboost_regressor.py

Lines changed: 0 additions & 66 deletions
This file was deleted.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ dependencies = [
2727
"statsmodels>=0.14.4",
2828
"sympy>=1.13.3",
2929
"typing-extensions>=4.12.2",
30-
"xgboost>=2.1.3",
3130
]
3231

3332
[dependency-groups]

uv.lock

Lines changed: 0 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)