Skip to content

Conversation

happy-riosky
Copy link
Contributor

Description

This PR introduces a new feature allowing users to add tags to an experiment during SwanLab initialization. Users can now specify tags directly through the swanlab.init() function, providing a more streamlined workflow for experiment organization and categorization.

Closes: #975

Key Changes:

  • Added support for tags parameter in swanlab.init()
  • Implemented validation for tag input

Usage Examples

  1. Basic tag assignment:
swanlab.init(tags=["foo", "bar", "baz"])
  1. Mixed with other initialization parameters:
swanlab.init(
    # 设置项目名
    project="my-awesome-project",
    # 设置标签
    tags=["production", "v1.0"]
    
    # 设置超参数
    config={
        "learning_rate": 0.02,
        "architecture": "CNN",
        "dataset": "CIFAR-100",
        "epochs": 10
    }
)

@SAKURA-CAT SAKURA-CAT added the 💪 enhancement New feature or request label May 16, 2025
@SAKURA-CAT SAKURA-CAT merged commit 79c2b0a into SwanHubX:main May 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQUEST] 在创建实验时打标签
2 participants