Experiment collection
Project description
Experiment collection
A set of utilities for storing and organizing experiments
Install
pip install experiment-collection
You can find another versions at releases or pypi.
Usage_example
Experiment
- structure with experiment data;
ExperimentCollectionLocal
- local experiment storage;
ExperimentCollectionRemote
- remote experiment storage;
could combine data from multiply sources.
from experiment_collection.experiments import Experiment, ExperimentCollectionLocal, ExperimentCollectionRemote
exps1 = ExperimentCollectionLocal('exp_test.db')
exps2 = ExperimentCollectionRemote('http://127.0.0.1/', 'exp_test')
for i in range(10):
exp = Experiment('name_{}'.format(i))
exp.set_metrics({'lr': 0.1})
exp.set_params({'auc': 0.5})
exps1.add_experiment(exp)
exps2.add_experiment(exp)
assert exps1.check_experiment(exp)
assert exps2.check_experiment(exp)
# Delete latest experiment
exps1.delete_experiment(exp)
exps2.delete_experiment(exp)
assert not exps1.check_experiment(exp)
assert not exps2.check_experiment(exp)
View all results. All metrics and params auto flatten into single columns.
exps1.get_experiments()
name time params_auc metrics_lr
0 name_0 2020-09-30 23:56:39.932871 0.5 0.1
1 name_1 2020-09-30 23:56:40.216424 0.5 0.1
2 name_2 2020-09-30 23:56:40.620029 0.5 0.1
3 name_3 2020-09-30 23:56:40.916781 0.5 0.1
4 name_4 2020-09-30 23:56:41.240535 0.5 0.1
5 name_5 2020-09-30 23:56:41.567865 0.5 0.1
6 name_6 2020-09-30 23:56:41.861890 0.5 0.1
7 name_7 2020-09-30 23:56:42.177155 0.5 0.1
8 name_8 2020-09-30 23:56:42.507883 0.5 0.1
9 name_9 2020-09-30 23:56:42.818714 0.5 0.1
License
MIT License
Copyright (c) 2020 AsciiShell (Aleksey Podchezertsev)
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
Built Distribution
File details
Details for the file experiment_collection-0.1.7.tar.gz
.
File metadata
- Download URL: experiment_collection-0.1.7.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73e8410c470eebffaafdf4e88dc090225f1be43f4e75b394e8a43053d70ea7e |
|
MD5 | ce122bcbd1dda95dc5bb182187ca46dc |
|
BLAKE2b-256 | 33289014b8832b28bb817b4f8845eae96dc52c74a41265a27308931b1146ff73 |
Provenance
File details
Details for the file experiment_collection-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: experiment_collection-0.1.7-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74038eec13911a64175f5e18fac87446d25e2b6c0eac24a716bb074a5a4f6d1 |
|
MD5 | ece3c8dd420ddf4abbfb617437f094d5 |
|
BLAKE2b-256 | 5aa53f0908a2b466bcf2cd0f4e6a8859255d11e89b6b6b508b4cb93f441127fd |