Skip to main content

pyrameter

pyrameter is a library for designing hierarchical parameter searches with continuous and discrete domains, and then search those spaces.

  1. Installation
  2. Dependencies
  3. A Short Example

Installation

pip install pyrameter

Dependencies

  • numpy
  • scipy
  • scikit-learn
  • pymongo
  • dill
  • six

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrameter-0.3.5.post3.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrameter-0.3.5.post3-py3-none-any.whl (48.3 kB view details)

Uploaded Python 3

File details

Details for the file pyrameter-0.3.5.post3.tar.gz.

File metadata

  • Download URL: pyrameter-0.3.5.post3.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for pyrameter-0.3.5.post3.tar.gz
Algorithm Hash digest
SHA256 779435174f92939c9083c16922022aff1946c9937795514204e06a2677a7967d
MD5 2018e312f2c9f33aa0e2d3920f733dce
BLAKE2b-256 e141743035bc90bb28ea853d8a336ad13b883862d4143c2479d62f9604323789

See more details on using hashes here.

File details

Details for the file pyrameter-0.3.5.post3-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrameter-0.3.5.post3-py3-none-any.whl
Algorithm Hash digest
SHA256 b84dfcd019e843857fa5c12b7cda7230fcbfbf3e078075abde6a1bf69cf483c9
MD5 e54a0d76973540a9e5f64e3d233d5158
BLAKE2b-256 d9ff6ca8587a89a73687c23a2fe039623c716b3d15f94641f53065b1ce0c5f28

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.5.post3 This release

2 files

0.3.5.post2

2 files

0.3.5.post1

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3.post1

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1.post1

2 files

0.3.1

2 files

0.3.0.post1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0.post8

2 files

0.2.0.post7

2 files

0.2.0.post6

2 files

0.2.0.post5

2 files

0.2.0.post4

2 files

0.2.0.post3

2 files

0.2.0.post2

2 files

0.2.0.post1

2 files

0.2.0

2 files

0.1.1.post5

2 files

0.1.1.post4

2 files

0.1.1.post3

2 files

0.1.1.post2

2 files

0.1.1.post1

2 files

0.1.1

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page