Assumption
assumption_sampler(X, y, model, n, loss=True, theorist=None, confirmation_bias=False)
Assumption Sampler challenges assumptions made by the Theorist. It identifies points whose error are most dependent on the assumption made. Assumptions take the form of hard-coding, which may be hyperparameters or arbitrarily chosen sub-algorithms e.g. loss function Because it samples with respect to a Theorist, this sampler cannot be used on the first cycle
Parameters:
Name | Type | Description | Default |
---|---|---|---|
X |
pool of IV conditions to sample from |
required | |
y |
experimental results from most recent iteration |
required | |
model |
Scikit-learn model, must have |
required | |
n |
number of samples to select |
required | |
loss |
assumption to test: identify points that are most affected by choice of loss function |
True
|
|
theorist |
the Theorist, which employs the theory it has been hard-coded to demonstrate |
None
|
|
confirmation_bias |
whether to find evidence to support or oppose the theory |
False
|
Source code in autora/experimentalist/sampler/assumption.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|