Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
mathcoder 219a418dd3 | 1 year ago | |
---|---|---|
cfgs | 2 years ago | |
comparison | 1 year ago | |
docs | 1 year ago | |
examples | 1 year ago | |
ext_algs | 1 year ago | |
xbbo | 1 year ago | |
.gitignore | 1 year ago | |
.readthedocs.yml | 1 year ago | |
LICENSE | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
requirements.txt | 2 years ago | |
requirements_optional.txt | 2 years ago | |
setup.py | 1 year ago |
XBBO is an an effective, modular, reproducible and flexible black-box optimization (BBO) codebase, which aims to provide a common framework and benchmark for the BBO community.
This project is now supported by PengCheng Lab.
Overview | Links |Installation | Quick Start | Benchmark |Contributing | License
For more information and API usages, please refer to our Documentation.
XBBO decouples the search algorithm from the search space and provides a unified search space interface, allowing developers to focus on the search algorithm.
We provide these black box optimization algorithms as follows:
Search Algorithm | Docs | Official Links |
---|---|---|
BORE optimizer | ||
Anneal | ||
DE | ||
CMA | ||
NSGA | ||
Regularized EA | ||
PBT | ||
TuRBO | ||
LaMCTS | ||
HyperBand | ||
BOHB | ||
DEHB | ||
MFES-BO | ||
TST-R | ||
TAF | ||
TAF(RGPE) | ||
RMoGP | ||
RGPE(mean) |
Python >= 3.7
is required.
To install XBBO from PyPI:
pip install xbbo
For detailed instructions, please refer to Installation.md
note:
XBBO default minimize black box function. All examples can be found in examples/
folder.
import numpy as np
from xbbo.search_space.fast_example_problem import build_space_hard, rosenbrock_2d_hard
from xbbo.search_algorithm.bo_optimizer import BO
from xbbo.utils.constants import MAXINT
if __name__ == "__main__":
MAX_CALL = 30
rng = np.random.RandomState(42)
# define black box function
blackbox_func = rosenbrock_2d_hard
# define search space
cs = build_space_hard(rng)
# define black box optimizer
hpopt = BO(space=cs,
objective_function=blackbox_func,
seed=rng.randint(MAXINT),
suggest_limit=MAX_CALL)
# ---- Use minimize API ----
hpopt.optimize()
best_value, best_config = hpopt.trials.get_best()
print('Find best value:{}'.format(best_value))
print('Best Config:{}'.format(best_config))
Please refer to Quick Start.md for more information.
XBBO provides an easy-to-use benchmark tool, users can easily and quickly test the performance of the variety black-box algorithms on each test problem. Clik here for more information.
We welcome contributions to the library along with any potential issues or suggestions.
Please refer to Contributing.md in our docs for more information.
This project is released under the MIT license.
黑盒优化框架
Python other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》