Compares weaknesses in multiple models
Project description
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)
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
Built Distribution
Close
Hashes for autora-experimentalist-sampler-model-disagreement-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c06c5983a815af35a550038746feced011762fbdf285d37205b2dc48aafbb376 |
|
MD5 | 322c3698f5fd40d4b7bbd15ef44b870d |
|
BLAKE2b-256 | 3d7175fc9e6d36aaa5e0b70855e7172453940b2fed96da795415a673c3736dd1 |
Close
Hashes for autora_experimentalist_sampler_model_disagreement-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771538d07a2e3611d504c9bc693ac7ce944e458df774e5459d711b9ad8615c71 |
|
MD5 | dce4cdd2c2bf7dbee01395d8ca3b8ce8 |
|
BLAKE2b-256 | f239ded6fe5a0c74fccb0ecf1e16caf653ab7b19052c0f9e9ce6c8a89191c856 |