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.2.0.tar.gz
.
File metadata
- Download URL: autora_experimentalist_nearest_value-2.2.0.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26e0a6b26cfbafd7b5db8ca24804763521663a0c344eb44d3bf45ebde450c3e |
|
MD5 | d601d217da46216988fe8a7c782fee7a |
|
BLAKE2b-256 | 243d9b2084b28ce065a4bd49d3fb7f657ba22ec9862f37b4ae6d7fc60c03246c |
File details
Details for the file autora_experimentalist_nearest_value-2.2.0-py3-none-any.whl
.
File metadata
- Download URL: autora_experimentalist_nearest_value-2.2.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.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd11825ef2225ef24f3516bd23e09a04fe1c3bf98ce151d29d57318e35ce1b48 |
|
MD5 | 9f4ec8cfd0aabbe10193907685609044 |
|
BLAKE2b-256 | 02d5543993232e2ea0454f77a4813c7acc9e645ce11134cd499fac0cc3594c2f |