Skip to content

Comments

Adds a tool that diffs two wandb runs#604

Merged
dirkgr merged 11 commits intomainfrom
WandbDiff
Jun 13, 2024
Merged

Adds a tool that diffs two wandb runs#604
dirkgr merged 11 commits intomainfrom
WandbDiff

Conversation

@dirkgr
Copy link
Member

@dirkgr dirkgr commented Jun 3, 2024

No description provided.

Copy link
Contributor

@AkshitaB AkshitaB left a comment

Choose a reason for hiding this comment

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

Minor suggestion: it will be great if it takes in https paths that we directly copy from the browser, and processes the strings to remove them to pass to the api.run command. A bit quicker for the user.

Copy link
Collaborator

@2015aroras 2015aroras left a comment

Choose a reason for hiding this comment

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

Approved with nits



def flatten(dictionary, parent_key="", separator="."):
items = []
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just curious, why not use a dictionary and dict.update(...) instead of a list with extend()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I copy and pasted this from SO 🙈.

Fixed in 049969b.

}
if len(keys_with_differences) > 0:
if len(left_only_keys) > 0 or len(right_only_keys) > 0:
print("Settings with differences:")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Having this in an if statement is a bit odd, but I guess you prefer it that way?

Copy link
Member Author

Choose a reason for hiding this comment

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

It prints this heading if it already printed other headings. Otherwise, there is only one heading, which we don't really need.

@dirkgr
Copy link
Member Author

dirkgr commented Jun 12, 2024

@AkshitaB , I added your suggestion in 598a885.

@dirkgr dirkgr merged commit a33caa9 into main Jun 13, 2024
@dirkgr dirkgr deleted the WandbDiff branch June 13, 2024 17:10
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.

3 participants