Skip to main content

Helpers utils for manage and track experiments.

Project description

Experiment_utils

Helper utils for track and manage Dl experimets with pytorch.

Very early stage - just draft for my utils.

Install

pip install experiment-utils

Editeble install: git clone https://github.com/ayasyrev/experiment-utils cd experiment-utils pip install -e .

How to use

Import Experiment:

from experiment_utils.experiment import *

After import you has p (stands for Parameters) and e (Experiment) objects.

Name the experiment, later it will be used in logs.

p.exp_name = 'test1'
p.exp_name
'test1'
e.p.exp_name
'test1'

Load learner

e.get_learner()
e.p.model
functools.partial(<function resnet18 at 0x7fc8d4dd08c0>, num_classes=10)
e.learn.model.fc
Linear(in_features=512, out_features=10, bias=True)

Short notation for learn - l

e.l.model.conv1
Conv2d(3, 64, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False)

Now we can easy change some parameter anr start train with pipeline what yuo neg.

from experiment_utils.utils import train_fc, plot

p.pipeline = [train_fc, plot]

p.lr = 0.001

p.epochs = 10

e(repeat_times=2)

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_utils-0.0.3.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

experiment_utils-0.0.3-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file experiment_utils-0.0.3.tar.gz.

File metadata

  • Download URL: experiment_utils-0.0.3.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for experiment_utils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e7a7c48d3ca5321acd4a2d99b9344b1b3c347c54d5956f0e352f889e56fcf3ec
MD5 7e6f6b17fecfbed944bdc8eba432a609
BLAKE2b-256 3cce669e1d00054362678a6f7ccd7589aa8223afdb442f75897d80f4f997232e

See more details on using hashes here.

File details

Details for the file experiment_utils-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: experiment_utils-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for experiment_utils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4974790c96cd0f052414de1f08ede603126bb813e568e02e4ea433904e3a9f98
MD5 c935e56bb0573b21c449783b92f511eb
BLAKE2b-256 5ce2d487d82d1b04e360519f5ac58c5305806e968e0636fcd7aee41ab864d744

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