Skip to main content

PyTorch Lightning Experiment Logger

Project description

Python Version PyPI Version Documentation

SagemakerExperimentsLogger

SagemakerExperimentsLogger provides a simple way to log experimental data such as hyperparameter settings and evaluation metrics via AWS SageMaker Experiments API. It can be easily integration into the concept of Pytorch Lightning Trainer class.

For detailed documentation, including the API reference, see Read the Docs

Installation

You can install the latest (nightly) version with pip using ssh with

pip install sagemaker-experiments-logger

Quickstart

The SageMaker Experiments logger can be easily applied by setup an own run context:

from pytorch_lightning import Trainer
from sagemaker.experiments.run import Run
from experiments_addon.logger import SagemakerExperimentsLogger

with Run(experiment_name="testExperiment", run_name="testRun1"):
    logger = SagemakerExperimentsLogger()
    trainer = Trainer(
        logger=logger,
        ...
    )
    ...

or by using an existing run context. For example in a SageMaker Training Step

from pytorch_lightning import Trainer
from experiments_addon.logger import SagemakerExperimentsLogger

logger = SagemakerExperimentsLogger(experiment_name="TestExp", run_name="TestRun")
trainer = Trainer(
logger=logger,
    ...
)
...

Usage

Try Tutorial Notebook to learn more about the usage of the SagemakerExperimentsLogger class.

It is also worth to read the blog post: Experiment Tracking With AWS SageMaker and PyTorch Lightning

Contributing

I welcome all contributions!

To file a bug or request a feature, please file a GitHub issue. Pull requests are welcome.

License

This library is licensed under the Apache 2.0 License.

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

sagemaker-experiments-logger-0.1.0.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sagemaker-experiments-logger-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sagemaker-experiments-logger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 353af353809cc8fa9c3cdf94745d43607397b753c8a95bc5690afc9a61bb459d
MD5 6145581a86c0705c80dee182f6d4bc49
BLAKE2b-256 c7c07952b6842d23a319405ce9ebe33b28b77675e7b5dcb1e1dbeb5d06333061

See more details on using hashes here.

File details

Details for the file sagemaker_experiments_logger-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sagemaker_experiments_logger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52880271265dfa0006f00a03efb70df4665f4a0127f9db848f4b1fdc83878aaf
MD5 24660b32d67f40ae96309dc80f7a1d07
BLAKE2b-256 60d6a15238b92ae7e0c71248e4ed5b5411f67636e088af3a4040481faa0e4f01

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