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)
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 | |
|---|---|---|---|
| pyrameter-0.3.5.post3.tar.gz | 32.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrameter-0.3.5.post3-py3-none-any.whl | Python 3 | none | any | Details |
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
|