The novelty experimentalist identifies experimental conditions
where
For instance,
the integration function
To illustrate this sampling strategy, consider the following four experimental conditions that were already probed:
0 | 0 | 0 |
1 | 0 | 0 |
0 | 1 | 0 |
0 | 0 | 1 |
Fruthermore, let's consider the following three candidate conditions
1 | 1 | 1 |
2 | 2 | 2 |
3 | 3 | 3 |
If the novelty experimentalist is tasked to identify two novel conditions, it will select
the last two candidate conditions $x'{1,j}$ and $x'{2,j}$ because they have the greatest
minimal distance to all existing conditions
import numpy as np
from autora.experimentalist.novelty import novelty_sampler, novelty_score_sampler
# Specify X and X'
X = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]])
X_prime = np.array([[1, 1, 1], [2, 2, 2], [3, 3, 3]])
# Here, we choose to identify two novel conditions
n = 2
X_sampled = novelty_sampler(conditions=X_prime, reference_conditions=X, num_samples=n)
# We may also obtain samples along with their z-scored novelty scores
(X_sampled, scores) = novelty_score_sampler(conditions=X_prime, reference_conditions=X, num_samples=n)