Skip to main content

Experiment collection

Project description

Experiment collection

GitHub PyPI version Release

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


Download files

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

Source Distribution

experiment_collection_server-0.2.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file experiment_collection_server-0.2.2.tar.gz.

File metadata

  • Download URL: experiment_collection_server-0.2.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for experiment_collection_server-0.2.2.tar.gz
Algorithm Hash digest
SHA256 31b430c0e30a9cbf7f1b6da157b67deee6c0d98df919c2c2eea89f1ed216564a
MD5 127a5fb7d2bb696d73886081b23deb2f
BLAKE2b-256 1d622894ad29f9364a7fe17686c003219103322878ee2e91bcb47e033e6c90d8

See more details on using hashes here.

File details

Details for the file experiment_collection_server-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: experiment_collection_server-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for experiment_collection_server-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4c17e2559cb63c76d470f61744687ca93820fb5b8455270d1357c074ea18751
MD5 8b15190206396413bffb468fac5656de
BLAKE2b-256 093216e50ff0b8a5fd015a9ae88b1741f8c09911006917149a821dc2d7be9992

See more details on using hashes here.

Supported by

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