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

[Feature request] Export grid tree table to LaTeX/csv #61

Open
Mattias421 opened this issue Dec 22, 2023 · 3 comments
Open

[Feature request] Export grid tree table to LaTeX/csv #61

Mattias421 opened this issue Dec 22, 2023 · 3 comments
Labels
question Further information is requested

Comments

@Mattias421
Copy link

❓ Questions

Hi all,

I think the Tree Table feature is great for monitoring, but also presenting final results, unfortunately, there doesn't seem to be an easy way to export to LaTeX or flatten the tree and save as csv.

Is this feature already secretly implemented or should I get coding :)

Best,
Mattias

@Mattias421 Mattias421 added the question Further information is requested label Dec 22, 2023
@adefossez
Copy link
Contributor

Not a feature currently but I would be mostly against integrating that upstream, everyone will want different things and I don't want to have to support each use case but keep Dora minimalistic.
I think I put some doc in the readme on how to list experiments in a grid and recover metrics and config. For instance xp.delta can be a good thing to look at to map short configs differences and then xp.link.load() + reading xp.link.history.

@adefossez
Copy link
Contributor

Also the how information is stored on disk is pretty straightforward. In the dora output dir, go to the grids subfolder, you can then just list your grid folder there, it will contain one symlink per experiment in the grid whose name is the XP signature. For instance:

from yourproject import train
grid = train.main.dora.dir / 'grids' / grid_name
for child in grid.iterdir():
    xp = train.main.get_xp_from_sig(child.name)
    xp.link.load()
    # look at xp.delta and xp.link.history

@Mattias421
Copy link
Author

Looping through the grid this way is an excellent way to process results, and pandas support good conversion from structured data to presentable latex tables, cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants