[Feature] Add XGBoost classifier test-function for tabular ML#17
[Feature] Add XGBoost classifier test-function for tabular ML#17Shruti1128 wants to merge 9 commits intoSimonBlanke:mainfrom
Conversation
|
Happy to adjust the search space or naming if needed. |
SimonBlanke
left a comment
There was a problem hiding this comment.
Thanks for opening the PR.
- We also need this new class in the init.py files further up.
- It must be added to the ml dependencies.
- Tests and documentation should also be added.
|
Thanks for the feedback! Please let me know if anything else should be adjusted. |
SimonBlanke
left a comment
There was a problem hiding this comment.
some tests are still failing. What is the reason for the failing tests
|
The failing tests are caused by XGBoost receiving integer hyperparameters (e.g., n_estimators, max_depth) as numpy.float64 values during full test evaluation. Although the search space contains integer values, Surfaces' parameter handling may convert them to floats internally. |
|
Hi Simon, |
SimonBlanke
left a comment
There was a problem hiding this comment.
The tests pass, which is great. But you should look how the import paths are for other machine-learning functions. This xgboost test function should be importable in the same way:
https://github.com/SimonBlanke/Surfaces/blob/main/src/surfaces/test_functions/machine_learning/__init__.py
Also change the test import path, then.
|
There are some conflicts that must be resolved from a recent merge. |
|
I’ve resolved the merge conflicts and updated the import structure so that XGBoostClassifierFunction is exposed consistently with the other ML functions. I also adjusted the test import path accordingly. Please let me know if anything else should be changed. |
Description
Related Issues
Type of Change
[BUG]- Bug fix (non-breaking change fixing an issue)[ENH]- New feature (non-breaking change adding functionality)[DOC]- Documentation only[MNT]- Maintenance (refactoring, dependencies, CI)How was this solved?
Checklist
Required
[BUG],[ENH],[DOC]or[MNT]make check(lint, format, isort)Tests
Documentation
Testing
Additional Notes