Skip to main content

The first collection of surrogate benchmarks for Joint Architecture and Hyperparameter Search.

Project description

JAHS-Bench-201

The first collection of surrogate benchmarks for Joint Architecture and Hyperparameter Search (JAHS), built to also support and facilitate research on multi-objective, cost-aware and (multi) multi-fidelity optimization algorithms.

Python versions License

Please see our documentation here.

Installation

Using pip

pip install git+https://github.com/automl/jahs_bench_201.git

Optionally, you can download the data required to use the surrogate benchmark ahead of time with

python -m jahs_bench.download --target surrogates

To test if the installation was successful, you can, e.g, run a minimal example with

python -m jahs_bench_examples.minimal

This should randomly sample a configuration, and display both the sampled configuration and the result of querying the surrogate for that configuration.

Using the Benchmark

Creating Configurations

Configurations in our Joint Architecture and Hyperparameter (JAHS) space are represented as dictionaries, e.g.,:

config = {
    'Optimizer': 'SGD',
    'LearningRate': 0.1,
    'WeightDecay': 5e-05,
    'Activation': 'Mish',
    'TrivialAugment': False,
    'Op1': 4,
    'Op2': 1,
    'Op3': 2,
    'Op4': 0,
    'Op5': 2,
    'Op6': 1,
    'N': 5,
    'W': 16,
    'Resolution': 1.0,
}

For a full description on the search space and configurations see our documentation.

Evaluating Configurations

import jahs_bench

benchmark = jahs_bench.Benchmark(task="cifar10", download=True)

# Query a random configuration
config = benchmark.sample_config()
results = benchmark(config, nepochs=200)

# Display the outputs
print(f"Config: {config}")  # A dict
print(f"Result: {results}")  # A dict

More Evaluation Options

The API of our benchmark enables users to either query a surrogate model (the default) or the tables of performance data, or train a configuration from our search space from scratch using the same pipeline as was used by our benchmark. However, users should note that the latter functionality requires the installation of jahs_bench_201 with the optional data_creation component and its relevant dependencies. The relevant data can be automatically downloaded by our API. See our documentation for details.

Benchmark Data

We provide documentation for the performance dataset used to train our surrogate models and further information on our surrogate models.

Experiments and Evaluation Protocol

See our experiments repository and our documentation.

Leaderboards

We maintain leaderboards for several optimization tasks and algorithmic frameworks.

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

jahs_bench_201-0.1.0.tar.gz (155.3 kB view details)

Uploaded Source

Built Distribution

jahs_bench_201-0.1.0-py3-none-any.whl (184.6 kB view details)

Uploaded Python 3

File details

Details for the file jahs_bench_201-0.1.0.tar.gz.

File metadata

  • Download URL: jahs_bench_201-0.1.0.tar.gz
  • Upload date:
  • Size: 155.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.7.13 Linux/5.15.41-1-MANJARO

File hashes

Hashes for jahs_bench_201-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae35958290e3cd0272afa2de21ca7ce0229cc71b5c750986c3586067361d055e
MD5 83138605f235a55c15aafd767320b3b9
BLAKE2b-256 85d416ad02ba94945a4ed6bda8a712ba64dd33515b4872d944bf8fcf2fd02829

See more details on using hashes here.

File details

Details for the file jahs_bench_201-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jahs_bench_201-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 184.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.7.13 Linux/5.15.41-1-MANJARO

File hashes

Hashes for jahs_bench_201-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e68cbd63055125732d2c3a3295fcca75c00aa43bec0196e00f9db09488d54788
MD5 4bc5b6c2357f2ff9659a4b0a9ecb8998
BLAKE2b-256 9a996e81997025525008c20174272eae457db55d646e11630c2246b3ac317027

See more details on using hashes here.

Supported by

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