Skip to main content

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.

Metadata

Release files for sagemaker-experiments-logger 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sagemaker-experiments-logger 0.1.1
File Size Uploaded
sagemaker-experiments-logger-0.1.1.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sagemaker-experiments-logger 0.1.1
File Interpreter ABI Platform
sagemaker_experiments_logger-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / sagemaker-experiments-logger-0.1.1.tar.gz

Download URL sagemaker-experiments-logger-0.1.1.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c15c0922f41ca01c78b8a18f3e65047beaff7e6da8787dc50f9c943608f8b8a6
BLAKE2b-256 checksum
How to use checksums
8fb6edecca4bb38878ecc852835944ce5dc948b15a49a873439ec6b515bf0836
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / sagemaker_experiments_logger-0.1.1-py3-none-any.whl

Download URL sagemaker_experiments_logger-0.1.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
083a1c9fa8595ee2457b23e219b18fab8b4f630c54b79b04ade33bfbf2a03387
BLAKE2b-256 checksum
How to use checksums
90b080dbb2a13194f1c675083b27111a7f3cd324acd4664ceb0e809da6848464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page