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["experimentalist-sampler-mixture"]
Check your installation by running:
python -c "from autora.experimentalist.sampler.mixture import mixture_sample"
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_sample(
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.0a4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c780dd88409c37e4ebc4c4f14af551b01d0cab32a26b2ef180b9bc027ad4345 |
|
MD5 | a38c2c13f3721cdcb7bb94330968a999 |
|
BLAKE2b-256 | d883aaab78d3cc40b2208ca608b3666739d6185c57c5b3dcff933139ccc5b7e9 |
Hashes for mixture_experimentalist-1.0.0a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30636e1051253a4640b3b456e91622bbec02d92d53aee1d29c72893c23aae1dd |
|
MD5 | 7774be1ea2e624a8e51ed11b19f7a5d5 |
|
BLAKE2b-256 | 7d600983ac249beb69a7712a76d6b5537da4f9af63bf3ca0e2e2d265f90e38c7 |