Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Git Tracking Commands.md 955 B

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

Git Tracking

This file contains the commands for the Git Tracking part in the DAGsHub Walkthrough session.

  • Install DAGsHub logger - !pip install dagshub
  • Log Metrics & Params :
# As a context manager:
with dagshub_logger() as logger:
    # Metrics:
    eval = model.evaluate(X_test, y_test, batch_size= 32)
    logger.log_metrics({'val_loss': eval[0], 'val_accuracy':eval[1]})

    # Hyperparameters:
    logger.log_hyperparams({'batch_size' :batch_size,
                            'validation_split':validation_split,
                            'epochs':epochs,
                            'optimizer':optimizer,
                            'metrics':metrics[0]})

Track the files using Git:

git add metrics.csv params.yaml
git commit -m "10 epochs"
git push

For more information please visit:

Tip!

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

Comments

Loading...