Keep track of digital experiments.
Project description
A lightweight python package for recording and analysing configurations and results of coding experiments.
Installation
pip install digital-experiments
Basic Use
- Define your experiment as a pure-python function, and decorate it with
@experiment
:
from digital_experiments import experiment
@experiment
def my_experiment(a, b=2):
return a ** b
- Call the function as normal:
>>> my_experiment(2, 3)
8
>>> my_experiment(4)
16
- Access the results of the experiment:
>>> my_experiment.observations()
[Observation(<id1>, {'a': 2, 'b': 3} → 8}),
Observation(<id2>, {'a': 4, 'b': 2} → 16})]
Documentation
For more information, see the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
digital-experiments-2.0.0.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for digital-experiments-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2244f40d6bdec2b2669048178e39f517c4cbef6cb3a822ee8e38592ab7ca6b65 |
|
MD5 | bec21af9cb6706f03908b6c2c66ff6d3 |
|
BLAKE2b-256 | abdf06675b7833fb56be135048b64e71d093ca13fb5fb2912685d4506dea3d80 |
Close
Hashes for digital_experiments-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3caef2daa64570b15a636a756a5a5d4b2540aad794ba39f5bdcd6b45a05f736b |
|
MD5 | 8a6ec1cc0d18cd4938206ac4402f4224 |
|
BLAKE2b-256 | 1267043a4183a032f47e6e013fc67a270820de965f96e8201ff70fe75f46bc69 |