Skip to main content

DAGsHub client libraries

Project description

Discord Build Status pypi Updates License

DAGsHub Python client libraries

Use DAGsHub to create reproducible versions of your data science research project, allow others to understand your project, and to contribute back to it.

DAGsHub is built firmly around open, standard formats for your project. In particular:

  • git
  • DVC
  • Standard data formats like YAML, JSON, CSV

Therefore, you can work with DAGsHub regardless of your chosen programming language or frameworks.

This client library is meant to help you get started quickly in Python, but it's purely optional - the data formats are very simple and you can choose to work with them directly.


pip install dagshub


You can learn more by completing our short tutorial or reading the docs

Basic Usage

from dagshub import dagshub_logger, DAGsHubLogger

# As a context manager:
with dagshub_logger() as logger:
    # Metrics:
    logger.log_metrics(loss=3.14, step_num=1)
    # OR:
    logger.log_metrics({'val_loss': 6.28}, step_num=2)
    # Hyperparameters:
    # OR:
    logger.log_hyperparams({'optimizer': 'sgd'})

# As a normal Python object:
logger = DAGsHubLogger()
logger.log_metrics(batches_per_second=100, step_num=42)
# ...

Integrations with ML frameworks

The basic DAGsHub logger is just plain Python, and requires no specific framework.

However, for convenience, we include some integrations with common ML frameworks, which can just work right out of the box, without having to write any logging code on your own:

Made with 🐶 by DAGsHub.

Project details

Download files

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

Files for dagshub, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size dagshub-0.1.7-py3-none-any.whl (9.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size dagshub-0.1.7.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page