Skip to main content

Selector: Ensemble-Based Automated Algorithm Configuration

Project description

Selector: Ensemble-based Automated Algorithm Configuration

An algorithm configurator in Python using multiple configuration generators and models derived from state-of-the-art methods. You can find documentation at (https://selector-ac.readthedocs.io/en/latest/).

Currently integrated state-of-the-art AC method functionalities from

  • CPPL
  • GGA
  • SMAC

Installation

You can use selector from the files the github repository or install it via

pip install swig
pip install selector-ac

Usage

You can use Selectors facade in Python like this:

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='total_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, or call selector/main.py and pass paths and arguments via command line.

Selector will run the AC process until the 'wallclock_limit' or 'total_tournament_number' is reached and save the results in 'log_folder'.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selector_ac-0.1.0.5.tar.gz (75.7 kB view details)

Uploaded Source

File details

Details for the file selector_ac-0.1.0.5.tar.gz.

File metadata

  • Download URL: selector_ac-0.1.0.5.tar.gz
  • Upload date:
  • Size: 75.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.5

File hashes

Hashes for selector_ac-0.1.0.5.tar.gz
Algorithm Hash digest
SHA256 d825d63cdf74f4db39a2f414b6cd1de98e5fdf9aed8d1f520905619d1bcb8047
MD5 342aec8772211a50c2a9471041e07f60
BLAKE2b-256 d485789f3dc113113f7b374c336d81078ca72b4a6fc0513ea3fe0ddf94dbd609

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page