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.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
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
Close
Hashes for autora-experimentalist-model-disagreement-1.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dcc4b3a8174d9b6345ef5878ff52e6b59f126482451ed1b0cf5fa930a69663f |
|
MD5 | 9ff86586998cda95ab84b80ac20ab19f |
|
BLAKE2b-256 | d20acffe7f7c4d2c72d5556ff6eede9886d83ee720f4dda9ebebd868cf83f37b |
Close
Hashes for autora_experimentalist_model_disagreement-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c092dc9f001398860f6d208901c1948af6f489613decf42e24ca5b00832cc37 |
|
MD5 | 8f013b20d4022e0231f5e77b025aa251 |
|
BLAKE2b-256 | 80446834504990eaf1c5da8866dbc54a19dd2b8d6fc4d2d436af73053c2d7c73 |