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

Add Parameter name to the final output #13

Open
waredjeb opened this issue Nov 13, 2023 · 3 comments
Open

Add Parameter name to the final output #13

waredjeb opened this issue Nov 13, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@waredjeb
Copy link

waredjeb commented Nov 13, 2023

It would be nice to also dump the name of the parameters together with their values to the final csv file (mostly for CMSSW configuration)

For CMSSW: maybe it would be also nice to save the final CMSSW configuration dump with the updated parameters

@rsreds you can assign me the issue if you want, I wanted to do that already

@waredjeb waredjeb changed the title Add Parameter Title to the save parameters Add Parameter name to the final output Nov 13, 2023
@waredjeb
Copy link
Author

waredjeb commented Nov 14, 2023

Are we happy with an output like this? @rsreds @felicepantaleo @bucket420
Or do we want something more sophisticated?

# wind angle1 angle2 height fitness0 fitness1
0.177660754571031643,0.224173540480451322,0.418394021075605638,115.050193126576274949,0.099999999999999978,0.000000000000000000
0.203423985357212678,0.260409003579986753,0.396187104120431510,114.250420772215420584,0.099999999999999978,0.000000000000000000

@rsreds
Copy link
Collaborator

rsreds commented Nov 14, 2023

I'd stick with csv style for the header as well.
With or without the #. You still have to treat it carefully when reading it if you have the header.

@waredjeb
Copy link
Author

Ok, so probably I'll produce the following, keeping the same separator for values and header

wind,angle1,angle2,height,fitness0,fitness1
0.177660754571031643,0.224173540480451322,0.418394021075605638,115.050193126576274949,0.099999999999999978,0.000000000000000000
0.203423985357212678,0.260409003579986753,0.396187104120431510,114.250420772215420584,0.099999999999999978,0.000000000000000000

Can be easily read with pandas:

d = pd.read_csv("pareto_front.csv", header=0, sep = ",")

@rsreds rsreds added good first issue Good for newcomers enhancement New feature or request labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants