A experimentalist which returns the nearest values between the input samples and the allowed values, without replacement.
Project description
AutoRA Nearest Value Experimentalist
A experimentalist which returns the nearest values between the input samples and the allowed values, without replacement.
Example Code
from autora.experimentalist.nearest_value import nearest_values_sampler
import numpy as np
#Meta-Setup
X_allowed = np.linspace(-3, 6, 10)
X = np.random.choice(X_allowed,10)
n = 5
#Sampler
X_new = nearest_values_sampler(X, X_allowed, 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-nearest-value-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe814f08cc57afbffc4f37e6f7b3a72ab9497b5c52bc140e1a8f32285ec47015 |
|
MD5 | 6c498b526d66509b9bbdd904e8c3e9fc |
|
BLAKE2b-256 | 4d546910d1887f3172fdaef23229239e651f0488fe696fc7379b427a079e608c |
Close
Hashes for autora_experimentalist_nearest_value-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d05a9b89cc5a2f9cf7a8d7e6228600d81468a2273ece48788f9f29f0351ac51 |
|
MD5 | 2e360f2712104591109b72daded75625 |
|
BLAKE2b-256 | 445454a8fa91d61db9d7ddc270009164881d14af78655788761742b91b0aae9c |