The goal of this project is to examine the performance of a mixture experimentalist–a hybrid of different experimental sampling strategies–in terms of its ability to recover a ground-truth model from synthetic data.
Project description
AutoRA Mixture Experimentalist
The Mixture Experimentalist identifies novel experimental conditions under which a hybrid of different experimental sampling strategies is used. This mixture can include any custom strategies such as falsification, novelty, crucial experimentation, uncertainty, elimination, aesthetic preferences, and arbitrary preferred/dispreferred regions of the space. The selection of conditions is based on a weighted sum of the scores obtained from these strategies.
Quickstart Guide
You will need:
- Python 3.8 or greater: https://www.python.org/downloads/
Mixture Experimentalist is a part of the AutoRA package:
pip install -U autora["mixture_experimentalist"]
Check your installation by running:
python -c "from autora.experimentalist.sampler.mixture_experimentalist import mixture_sampler"
Usage
The Mixture Experimentalist can be used to select experimental conditions based on a mixture of different strategies. Here's a basic example:
from autora.experimentalist.sampler.mixture import mixture_sampler
# Define your condition pool, temperature, samplers, and parameters
condition_pool = ...
temperature = ...
samplers = ...
params = ...
# Use the mixture_sampler to select conditions
selected_conditions = mixture_sampler(
condition_pool=condition_pool,
temperature=temperature,
samplers=samplers,
params=params,
num_samples=10
)
In this example, condition_pool is the pool of experimental conditions to evaluate, temperature controls the randomness of the selection (close to 0 for deterministic, higher for more random), samplers is a list of sampler functions with their weights in the mixture, and params is a dictionary of parameters for the sampler functions.
For more detailed usage instructions and examples, please refer to the documentation: https://github.com/blinodelka/mixture_experimental_strategies/blob/main/docs/basic-usage.ipynb.
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 Distribution
Built Distribution
Hashes for mixture_experimentalist-1.0.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 942d948e3cb603f7f30796ad4edd366abd1dea04d115be255f832a1a0084284e |
|
MD5 | 68116f03060e27efd46b5669f9f2b553 |
|
BLAKE2b-256 | d0cda3eee234860a1ed723b8490fe65c885c7090b7b5ae4e97af754880eae183 |
Hashes for mixture_experimentalist-1.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c7ada73febdda4205f8e3dfe69bd5030bb586890e53c2eda34f17a8f26a770 |
|
MD5 | 00d1f0f97159466a5a9c0e22480c3fb5 |
|
BLAKE2b-256 | 1eb8b9a4ebd3c330960746cdd34488be2a3b1c752fdbb65d27727fb888111bda |