The following examples use Keras from TensorFlow 2.0. The dependencies can be installed as follows
pip install -r requirements-examples.txt
- mnist.py: Usage using explicit
CO2Tracker
objects. - mnist_decorator.py: Using the
@track_co2
decorator. - mnist_callback.py: Using Keras callbacks to save emissions after each epoch.
- mnist-comet.py: Using
CO2Tracker
withComet
for automatic experiment and emissions tracking. - api_call_demo.py: Simplest demo to send computer emissions to CodeCarbon API.
- api_call_debug.py: Script to send computer emissions to CodeCarbon API. Made for debugging: debug log and send data every 20 seconds.