Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Guy c05ce16976
Merge branch 'tests' of Guy/client-fork into master
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
82b24d5f99
Unmark node as metric
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
fe46adaa97
Initial commit
4 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In


Build Status pypi

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.

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

Installation

pip install dagshub

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:
    logger.log_hyperparams(lr=1e-4)
    # OR:
    logger.log_hyperparams({'optimizer': 'sgd'})
    

# As a normal Python object:
logger = DAGsHubLogger()
logger.log_hyperparams(num_layers=32)
logger.log_metrics(batches_per_second=100, step_num=42)
# ...
logger.save()
logger.close()

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.

Tip!

Press p or to see the previous file or, n or to see the next file

About

No description

Collaborators 2

Comments

Loading...