Skip to content

[REQUEST] 添加clean功能,用于清理本地中断的实验记录文件夹。或者在SwanKitCallback中,实现before_init_experiment函数能够获取run_dir目录,这样用户可以自己实现插件往run-*目录中读写内容。 #1106

@Sonne-Ding

Description

@Sonne-Ding

🤩 Features description [Please make everyone to understand it]

Briefly describe this feature

👍 What problem does this feature solve

清理swanlog目录

👾 What does the proposed API look like

swanlab clean --logdir
或者实现

class StatusPoint(SwanKitCallback):
    def before_init_experiment(
        self,
        run_dir: str, # 实现可以通过插件在初始化的时候,获取实验本地记录的目录文件夹,这样用户就能自己实现往实验目录中添加记录信息。
        run_id: str,
        exp_name: str,
        description: str,
        colors: Tuple[str, str],
        *args,
        **kwargs,
    ):

🚑 Any additional [like screenshots]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions