Capgemini-Invent-France / CarbonAI

Python package to monitor the power consumption of any algorithm
MIT License
46 stars 12 forks source link

Add a method to retrieve last run results #9

Open Neyri opened 3 years ago

Neyri commented 3 years ago

It would be nice to be able to retrieve the consumption of the last training. Maybe we could add a method to get this. I'm thinking of something like :

power_meter = PowerMeter(*args)
with power_meter(*args, **kwargs):
    # do_something

# This would be nice
co2_emission, energy_consumption = power_meter.get_last_log(columns=["Carbon emissions", "Energy consumption"])

Naming and arguments are open to discuss