Skip to main content

AutoRA Nearest Value Sampler

A sampler which returns the nearest values between the input samples and the allowed values, without replacement.

Example Code

from autora.experimentalist.sampler.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)

Metadata

Release files for autora-experimentalist-sampler-nearest-value 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autora-experimentalist-sampler-nearest-value 1.0.1
File Size Uploaded
autora-experimentalist-sampler-nearest-value-1.0.1.tar.gz 28.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autora-experimentalist-sampler-nearest-value 1.0.1
File Interpreter ABI Platform
autora_experimentalist_sampler_nearest_value-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.5 kB

Release files / autora-experimentalist-sampler-nearest-value-1.0.1.tar.gz

Download URL autora-experimentalist-sampler-nearest-value-1.0.1.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e173a58c94b603b845090e4e9a3e4a78eb3b97c4fdc4897824ef96de797548a2
BLAKE2b-256 checksum
How to use checksums
4d88a4ed448660b2c6e53c99eff4542ee9cc75bc3cd4746661e6b9d7b462c413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / autora_experimentalist_sampler_nearest_value-1.0.1-py3-none-any.whl

Download URL autora_experimentalist_sampler_nearest_value-1.0.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69821e675355cadd4a9daf5954d9c4c7180b944967d3acaec21eec62746df462
BLAKE2b-256 checksum
How to use checksums
018e702892586afdf48bdf1273ac18fc5fcdd8e8dbdc4d00678aa8192b5d02f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page