Skip to content

About

Finding good search spaces for bayesian optimization

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Time-Optimized Bayesian Optimization of Random Forest Hyperparameters

This project implements a meta-optimized approach to Bayesian Optimization for tuning hyperparameters of a Random Forest Classifier. Our method recursively tunes the hyperparameters of the Bayesian Optimization algorithm itself, resulting in improved classification accuracy and reduced hyperparameter search time when extended to a larger dataset compared to conventional methods. In other words, the algorithm finds suitable search spaces for running Bayesian Optimization on a sample of a larger dataset, then extends the results to determine good hyperparameters for executing the Bayesian Optimization algorithm on the random forest classifier for the original dataset.

The approach is demonstrated on the breast-cancer dataset from Weka, and performance is evaluated based on accuracy, precision, recall, training time, and confusion matrices.

Usage

  1. Prepare the Dataset:

    • The project uses the breast-cancer.csv dataset from Weka. Ensure the dataset is placed in the same directory as the Python files.
  2. Run the Baseline Model:

    • Execute the script for the baseline Random Forest model:
      python no-optimization.py
  3. Run Bayesian Optimization on Random Forest:

    • Execute the script that applies standard Bayesian Optimization:
      python bayesian_optimization.py
  4. Run Meta-Optimized Bayesian Optimization:

    • Execute the script where Bayesian Optimization is recursively tuned:
      python optimized.py
  5. View Results:

    • Check the console output for performance metrics (accuracy, precision, recall, runtime) and confusion matrices.

About

Finding good search spaces for bayesian optimization

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages