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
File details
Details for the file autora_experimentalist_nearest_value-2.1.0.tar.gz
.
File metadata
- Download URL: autora_experimentalist_nearest_value-2.1.0.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0249a1d841b139ace69cb2ebd895ef0e6479cf03a88df6acbd747cbf69c5d2b |
|
MD5 | 8a22c92e9628859308bb70a0dbf877b0 |
|
BLAKE2b-256 | e0fd11aa01d516551cb1598b4f52fd6ba42aac62b8ddbab2307012fc60db17e2 |
File details
Details for the file autora_experimentalist_nearest_value-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: autora_experimentalist_nearest_value-2.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a787de642e4316841f52641328b3340506b0e9f5ae36e15153d3e46e969a3de |
|
MD5 | 8e0891b825b429933c7713b8e8b20148 |
|
BLAKE2b-256 | 68a14d0c1d564ea7a28a5d30b35b20555189bcfdb18f248e4c58300c2e9ad1f0 |