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.1.0.tar.gz.

File metadata

File hashes

Hashes for autora_experimentalist_nearest_value-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a0249a1d841b139ace69cb2ebd895ef0e6479cf03a88df6acbd747cbf69c5d2b
MD5 8a22c92e9628859308bb70a0dbf877b0
BLAKE2b-256 e0fd11aa01d516551cb1598b4f52fd6ba42aac62b8ddbab2307012fc60db17e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autora_experimentalist_nearest_value-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a787de642e4316841f52641328b3340506b0e9f5ae36e15153d3e46e969a3de
MD5 8e0891b825b429933c7713b8e8b20148
BLAKE2b-256 68a14d0c1d564ea7a28a5d30b35b20555189bcfdb18f248e4c58300c2e9ad1f0

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