baler-collaboration / baler

Repository of Baler, a machine learning based data compression tool
https://github.com/baler-collaboration/baler.github.io
Apache License 2.0
30 stars 26 forks source link

Implements codecarbon plots #330

Open sanam2405 opened 10 months ago

sanam2405 commented 10 months ago

While profiling baler with codecarbon, the profiling logs can be stored as a .CSV file. This PR creates plots from the .CSVlog file for better visualization of the energy profiles.

For a sample .CSV as shown below

Screenshot from 2023-11-11 14-03-54

The PR plots figures as

perform_training_plot1

perform_training_plot2

perform_training_plot3

perform_training_plot4

These plots are stored at the location workspaces/CFD_workspace/CFD_project_animation/output/profiling I have created an empty folder profiling under the output directory and added a .gitkeep

Screenshot from 2023-11-11 13-52-11

~However it seems that the empty profiling folder is still getting ignored and not being pushed into GitHub. For now, this PR can be reviewed by explicitly creating the profiling folder but this needs to be fixed in the .gitignore which I am unable to figure out and I need help.~

The .gitignore present in the root of baler directory has some issues. It is not ignoring as intended, in particular, if we add new contents/folders/files inside the workspaces directory. I fixed the above mentioned strikethrough issue by directly making an empty folder named profiling with a .gitkeep inside and committed the changes on GitHub itself. However the same doesn't seem to work when I do it locally. Git cannot track the empty folder and cannot push the empty folder into GitHub. Making changes to the .gitignore also doesn't seem to work.