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
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6bf3f6a041978ba33ce9c41b510cf83d4775637dfb9e776211e1e87bd114a7 |
|
MD5 | acd46bfbde1089cd0e8c611babd97ac8 |
|
BLAKE2b-256 | 3b0383b4591b345011afd67ea7451a4a8af37cd661105ec0b50564affc25db7b |
Close
Hashes for autora_experimentalist_model_disagreement-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48283e354e9eb8102db5c0f636f1e0988c8003eafcaed0dd2926a86b246f816b |
|
MD5 | 29cfbbcc002092a47d37698e789255a2 |
|
BLAKE2b-256 | 8602b02a0bcd1a503fb235e6c48ef7860de5b482d3c85588186ad174ce1608a7 |