Skip to main content

"Utilities for the python package 'param'"

Project description

Documentation Status Build status License

pydrobert-param

Utilities for the python package param

This is student-driven code, so don't expect a stable API. I'll try to use semantic versioning, but the best way to keep functionality stable is by pinning the version in the requirements or by forking.

While param is a great tool for keeping track of parameters, currently serialization is restricted to pickling and unpickling objects. pydrobert-param takes the stance that parameter (de)serialization has an intuitive and obvious representation in most cases. The developer can modify how pydrobert-param (de)serializes param.Parameterized instances according to her needs.

A teaser:

import param
import pydrobert.param.serialization as serial

class Foo(param.Parameterized):
    my_int = param.Integer(10)

first, second = Foo(), Foo()
first.my_int = 30
serial.serialize_to_json('foo.json', first)
serial.deserialize_from_json('foo.json', second)
assert first.my_int == second.my_int

While the primary purpose of pydrobert-param is for parameter (de)serialization, there is also code in pydrobert.param.optuna for hyperparameter optimization via Optuna. Check the documentation for more complicated examples of serialization, as well as for hyperparameter optimization.

Documentation

Installation

pydrobert-param is available via both PyPI and Conda.

conda install -c sdrobert pydrobert-param
pip install pydrobert-param
pip install git+https://github.com/sdrobert/pydrobert-param # bleeding edge

Licensing and How to Cite

Please see the pydrobert page for more details.

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

pydrobert-param-0.3.0.tar.gz (56.1 kB view details)

Uploaded Source

Built Distribution

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

pydrobert_param-0.3.0-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file pydrobert-param-0.3.0.tar.gz.

File metadata

  • Download URL: pydrobert-param-0.3.0.tar.gz
  • Upload date:
  • Size: 56.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pydrobert-param-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9e1e759e37541fd6ba52620bf220096b9c893e2f4eb28277fc73b44538af48ca
MD5 9d1d4d3533406b529d3b44037d068a88
BLAKE2b-256 366a25fdb3d7c735a54cd132b47543af09afd79000594c4462913f282badf26c

See more details on using hashes here.

File details

Details for the file pydrobert_param-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pydrobert_param-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pydrobert_param-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe8efd0c5b13bd3fc89afe2e1ea8c83a06074f671a09bbdd5cb8ef0c701ea053
MD5 92fa0c29dafa78994e22f679b9ba7d9f
BLAKE2b-256 ba95b009ed7ff72e8bbec7474b222fa10092da84fb0fd52e66656b94840c6b90

See more details on using hashes here.

Supported by

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