Closed elifarley closed 5 months ago
Thanks for the PR. I checked the contents, but it seems to be a package that uses Optuna rather than an example. The optuna-examples
repository is a collection of short snippets, so it is not a suitable place to publish your package. How about publishing it in a repository you own?
This pull request has not seen any recent activity.
Let me close this PR. If you have any opinions, please feel free to reopen it.
Motivation
Feature selection is a critical step in machine learning to enhance model performance and reduce overfitting. However, evaluating every possible combination of features can be computationally expensive. This example introduces an efficient approach to feature selection using Optuna, which significantly reduces the search space and computation time.
Changes
This PR adds a new example class that demonstrates how to use Optuna for feature selection. The class conducts a study where each trial attempts a different subset of features from the input dataset. The key highlights of this example include:
Pruning Strategy
Trials are pruned using optuna.exceptions.TrialPruned in three scenarios:
ETA Prediction
After each successful trial, an estimated time of arrival (ETA) is printed, providing users with a prediction of when the study is likely to complete. This feature is particularly useful for long-running studies, allowing users to manage their time efficiently.
Benefits
Efficiency: By pruning trials that exceed the feature limit, have no selected features, or repeat previous trials, we save significant computation time.
User Experience: The ETA prediction enhances the user experience by setting expectations for study completion, enabling better planning and time management.
Example Usage