Skip to main content

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


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

File hashes

Hashes for autora_experimentalist_nearest_value-2.2.0.tar.gz
Algorithm Hash digest
SHA256 d26e0a6b26cfbafd7b5db8ca24804763521663a0c344eb44d3bf45ebde450c3e
MD5 d601d217da46216988fe8a7c782fee7a
BLAKE2b-256 243d9b2084b28ce065a4bd49d3fb7f657ba22ec9862f37b4ae6d7fc60c03246c

See more details on using hashes here.

File details

Details for the file autora_experimentalist_nearest_value-2.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autora_experimentalist_nearest_value-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd11825ef2225ef24f3516bd23e09a04fe1c3bf98ce151d29d57318e35ce1b48
MD5 9f4ec8cfd0aabbe10193907685609044
BLAKE2b-256 02d5543993232e2ea0454f77a4813c7acc9e645ce11134cd499fac0cc3594c2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page