Compares weaknesses in multiple models
Project description
AutoRA Model Disagreement Experimentlist
The model disagreement experimentlist 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)
#experimentlist
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-model-disagreement-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cc45b01acc8f87a169e1cc1715f3222443370d7974e6b5fb877ae7a13c807e7 |
|
MD5 | 0f682c22f57828463d44612677674a4e |
|
BLAKE2b-256 | 3d9dad66ee14e386fe80bab6bbea706943baaad3ef2938d8675ac31727beb191 |
Close
Hashes for autora_experimentalist_model_disagreement-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de4e522731ba528970b77929c85d51af257fc5908b62dcba725ce5b216d68c12 |
|
MD5 | 336b80e17cdcbaf3fe6a338b6c52ff53 |
|
BLAKE2b-256 | 13e21a6bf846e5665bdedcfcb567a49424f23e986f29279e99c0878a2a937319 |