AutoRA Model Disagreement Sampler
The model disagreement sampler identifies experimental conditions $\vec{x}' \in X'$ with respect to a pairwise distance metric between theorist models, $P_{M_{i}}(\hat{y}, \vec{x}')$:
$$ \underset{\vec{x}'}{\arg\max}~(P_{M_{1}}(\hat{y}, \vec{x}') - P_{M_{2}}(\hat{y}, \vec{x}'))^2 $$
Example Code
from autora.experimentalist.sampler.model_disagreement import model_disagreement_sample
from autora.theorist.bms import BMSRegressor; BMSRegressor()
from autora.theorist.darts import DARTSRegressor; DARTSRegressor()
import numpy as np
#Meta-Setup
X = np.linspace(start=-3, stop=6, num=10).reshape(-1, 1)
y = (X**2).reshape(-1, 1)
n = 5
#Theorists
bms_theorist = BMSRegressor()
darts_theorist = DARTSRegressor()
bms_theorist.fit(X,y)
darts_theorist.fit(X,y)
#Sampler
X_new = model_disagreement_sample(X, [bms_theorist, darts_theorist], n)
Metadata
Release files for autora-experimentalist-sampler-model-disagreement 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| autora-experimentalist-sampler-model-disagreement-1.0.4.tar.gz | 99.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autora_experimentalist_sampler_model_disagreement-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 102.4 kB
Release files / autora-experimentalist-sampler-model-disagreement-1.0.4.tar.gz
| Download URL | autora-experimentalist-sampler-model-disagreement-1.0.4.tar.gz |
|---|---|
| Size | 99.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86493c70633aad10772be59cd4a299f12a510a26972fbf68449a5434436f1b5f
|
|
BLAKE2b-256 checksum How to use checksums |
1f50d2feedaa7e97a0c1b6ad33bcf7ae0c910d2d6f15ced841f6459004ef0d33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / autora_experimentalist_sampler_model_disagreement-1.0.4-py3-none-any.whl
| Download URL | autora_experimentalist_sampler_model_disagreement-1.0.4-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
976e9cdafb95d9b92ee2c19862f5fa730597efce115f3d5aa7da5dd696d1db1d
|
|
BLAKE2b-256 checksum How to use checksums |
afe8249143a7f987ab9cbcbc5b2ffcb14ea9290b1c6df6e84d0f986d899121da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|