Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom exp name #725

Merged
merged 5 commits into from
Oct 20, 2023
Merged

custom exp name #725

merged 5 commits into from
Oct 20, 2023

Conversation

dberenbaum
Copy link
Collaborator

Closes #582

@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Files Coverage Δ
src/dvclive/dvc.py 95.96% <100.00%> (+0.47%) ⬆️
src/dvclive/lightning.py 0.00% <ø> (ø)
src/dvclive/live.py 95.50% <100.00%> (+0.01%) ⬆️
tests/test_dvc.py 100.00% <100.00%> (ø)
tests/test_post_to_studio.py 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@dberenbaum dberenbaum requested a review from a team October 18, 2023 20:06
@@ -62,6 +62,7 @@ def __init__( # noqa: PLR0913
save_dvc_exp: bool = False,
dvcyaml: bool = True,
cache_images: bool = False,
exp_name: Optional[str] = None,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add exp_message and update other args for this callback in a separate PR.

src/dvclive/live.py Outdated Show resolved Hide resolved
@dberenbaum dberenbaum requested a review from shcheklein October 19, 2023 19:40
if name:
ref = ExpRefInfo(baseline_sha=baseline_rev, name=name)
if scm.get_ref(str(ref)):
logger.warning(f"Experiment conflicts with existing experiment '{name}'.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw., what happens if two people name the experiment the same way simultaneously (feels that it would have been better to have still some random id / hash in the name or something).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing prevents us from adding a random suffix, but it's outside the scope of this PR, right? How about we open an issue in dvc to discuss it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, sorry, not a blocker for this PR

@dberenbaum dberenbaum merged commit 3372cce into main Oct 20, 2023
10 checks passed
@dberenbaum dberenbaum deleted the exp-name branch October 20, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set exp name
3 participants