Home Wandb 使用
Post
Cancel

Wandb 使用

wandb 是帮助记录训练的模型很好用的工具。这篇文章记录了wandb的基础使用过程。

Install & Setup

1
2
pip install wandb
wandb login

Init

1
2
3
4
5
6
7
8
9
10
11
# init
run = wandb.init(
    # Set the project where this run will be logged
    project="my-awesome-project",
    # Track hyperparameters and run metadata
    config={
        "learning_rate": lr,
        "epochs": epochs,
    })
# take logs use dict
wandb.log({"accuracy": acc, "loss": loss})

Tags

训练时加入 tags 会很方便之后展示的时候使用 filter,更有利于可视化

This post is licensed under CC BY 4.0 by the author.

SVM 学习

Git usage

Comments powered by Disqus.