Skip to main content

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:

Mixture Experimentalist is a part of the AutoRA package:

pip install -U autora["experimentalist-mixture"]

Check your installation by running:

python -c "from autora.experimentalist.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.mixture import mixture_sample

# 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


Download files

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

Source Distribution

mixture_experimentalist-1.0.0a7.tar.gz (155.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mixture_experimentalist-1.0.0a7-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mixture_experimentalist-1.0.0a7.tar.gz.

File metadata

File hashes

Hashes for mixture_experimentalist-1.0.0a7.tar.gz
Algorithm Hash digest
SHA256 c69d8c6d1c2ddfa3533f52d1e3b00859beee346cb4dd2f66358f91930b0120af
MD5 9e137a3f09cd404d340f83150de56396
BLAKE2b-256 3602c0918b2c271552d260775c72e3282742300394d125ceb653844d1bfd4489

See more details on using hashes here.

File details

Details for the file mixture_experimentalist-1.0.0a7-py3-none-any.whl.

File metadata

File hashes

Hashes for mixture_experimentalist-1.0.0a7-py3-none-any.whl
Algorithm Hash digest
SHA256 80d002eca1c8a8fc8f776da85f7fcbaf91140a426c9a4042da10c30b2f4d5a49
MD5 557e080e0e1f4baf089ffd8e3a5b5436
BLAKE2b-256 e152d980ec7a5e2ab0bd7d2d03cb3e9e7575d9ddac79c99af271d59289dce53c

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