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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 883f84745303b0e0099be458098e6d1a12eaa7af5130d5e0978a9512bff678d0 |
|
MD5 | 28811b4b1d2c54ec8f756cee08e30325 |
|
BLAKE2b-256 | 9ea3ddaf5f134c3e7b8971a4ff99ef91fb93c23872cedbf740a93dcd40c4761a |
Close
Hashes for autora_experimentalist_model_disagreement-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d5658aa22ecd5a571f2ea016b6de0b261c5093168e87341ab5da2a56e964a89 |
|
MD5 | 57a58932464998c020e9adf31f593373 |
|
BLAKE2b-256 | 6646a18699a7287ececcce6b9b6225e2e6421f53e6af985b3c579b30bb01ae71 |