pyrameter
pyrameter is a library for designing hierarchical parameter searches with
continuous and discrete domains, and then search those spaces.
Installation
pip install pyrameter
Dependencies
numpyscipyscikit-learnpymongodillsix
A Short Example
import math
import pyrameter
# Minimize the sin function
def objective(params):
return math.sin(params['x'])
# Uniformly sample values over [0, pi]
space = {
'x': pyrameter.uniform(0, math.pi),
}
# Set up the search with an experiment key, the domains to search, and
# random search to generate values.
opt = pyrameter.FMin('sin_exp', space, 'random')
# Try 1000 values of x and store the result.
for i in range(1000):
trial = opt.generate()
trial.objective = objective(trial.hyperparameters)
# Print the x that minimized sin
print(opt.optimum)
Metadata
Release files for pyrameter 0.3.5.post3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrameter-0.3.5.post3.tar.gz | 32.7 kB | Without provenance | Details for pyrameter-0.3.5.post3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrameter-0.3.5.post3-py3-none-any.whl | Python 3 | none | any | Details for pyrameter-0.3.5.post3-py3-none-any.whl |
Total release size: 81.0 kB
Release files / pyrameter-0.3.5.post3.tar.gz
| Download URL | pyrameter-0.3.5.post3.tar.gz |
|---|---|
| Size | 32.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
779435174f92939c9083c16922022aff1946c9937795514204e06a2677a7967d
|
|
BLAKE2b-256 checksum How to use checksums |
e141743035bc90bb28ea853d8a336ad13b883862d4143c2479d62f9604323789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / pyrameter-0.3.5.post3-py3-none-any.whl
| Download URL | pyrameter-0.3.5.post3-py3-none-any.whl |
|---|---|
| Size | 48.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b84dfcd019e843857fa5c12b7cda7230fcbfbf3e078075abde6a1bf69cf483c9
|
|
BLAKE2b-256 checksum How to use checksums |
d9ff6ca8587a89a73687c23a2fe039623c716b3d15f94641f53065b1ce0c5f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for pyrameter 0.3.5.post3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.