autora.experimentalist.nearest_value
sample(conditions, reference_conditions, num_samples)
A experimentalist which returns the nearest values between the input samples and the allowed values, without replacement.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
conditions |
Union[DataFrame, ndarray]
|
The candidate samples of experimental conditions to be evaluated. |
required |
reference_conditions |
Union[DataFrame, ndarray]
|
Experimental conditions to which the distance is calculated |
required |
num_samples |
int
|
number of samples |
required |
Returns:
Type | Description |
---|---|
the nearest values from |
Source code in temp_dir/nearest-value/src/autora/experimentalist/nearest_value/__init__.py
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 |
|