Add LightGBM Regressor and Classifier test function #14
+463
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces LightGBM-based test functions, which includes both a Regressor and a Classifier.
Related Issues
Fixes #6
Type of Change
[ENH]- New feature (non-breaking change adding functionality)How was this solved?
Here is what I did:
LightGBMRegressorFunctionandLightGBMClassifierFunctionclasses.__init__.pyfiles in both foldersChecklist
Required
[ENH]make check(lint, format, isort)Tests
Documentation
Testing
Verification can be performed by instantiating the classes and checking the search space or objective function:
from surfaces.test_functions.machine_learning.hyperparameter_optimization.tabular.regression import LightGBMRegressorFunction lgbm_f = LightGBMRegressorFunction(dataset="diabetes", cv=5) print(lgbm_f.search_space) lgbm_f._create_objective_function() print(f"Pure objective function ready: {lgbm_f.pure_objective_function is not None}")