Selector: Ensemble-Based Automated Algorithm Configuration
Project description
Selector: Ensemble-based Offline Algorithm Configuration
An algorithm configurator in Python using multiple configuration generators and models derived from state-of-the-art methods.
Currently integrated state-of-the-art AC method functionalities from
- CPPL
- GGA
- SMAC
Installation
You can use selector from the files in this repository or install it via
pip install selector-ac
Usage
A convenient way is to install Selector via pip and use it as a package in Python.
from selector.run_ac import ac
if __name__ == "__main__":
scen_files = {'paramfile': 'your_path_to/params.pcs',
'instance_file': 'your_path_to/problem_instances.txt',
'feature_file': 'your_path_to/instance_features.txt'}
ac(scen_files, 'desktop', # use 'cluster' for slurm
run_obj='runtime', overall_obj='PAR10', cutoff_time=300,
seed=44, par=10, winners_per_tournament=1, tournament_size=2,
number_tournaments=2, termination_criterion='runtime',
monitor='tournament_level', initial_instance_set_size=5, set_size=256,
generator_multiple=1, memory_limit=2048, check_path=False,
log_folder='your_log_folder_path', wallclock_limit=3600,
wrapper_mod_name='your_path_to.your_wrapper', deterministic=0,
wrapper_class_name='Your_Wrapper')
You can also call a Python script as exemplified in selector/main.py and pass paths and arguments via command line.
Selector will run the AC process until the 'wallclock_limit' is reached and save the results in 'log_folder'.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file selector_ac-0.1.0.3-py3-none-any.whl.
File metadata
- Download URL: selector_ac-0.1.0.3-py3-none-any.whl
- Upload date:
- Size: 80.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bbb8e4a15e47a7c2c9fe5ab118725add41c7a0af983d978386bfba599beaa08
|
|
| MD5 |
462584256371206d0fa0002562586817
|
|
| BLAKE2b-256 |
45d6e4a91a6c4ad97246c4ee963660343cf9dfe7d456aeb4f9f3d89558f33cb3
|