This function will do nothing during (occurrence * delay) seconds. The Code Carbon API will be called every (measure_power_secs * api_call_interval) seconds.
()
| 12 | save_to_api=True, |
| 13 | ) |
| 14 | def train_model(): |
| 15 | """ |
| 16 | This function will do nothing during (occurrence * delay) seconds. |
| 17 | The Code Carbon API will be called every (measure_power_secs * api_call_interval) seconds. |
| 18 | """ |
| 19 | occurrence = 60 * 24 * 365 * 100 # Run for 100 years! |
| 20 | delay = 60 # Seconds |
| 21 | for i in range(occurrence): |
| 22 | print(f"{occurrence * delay - i * delay} seconds before ending script...") |
| 23 | time.sleep(delay) |
| 24 | |
| 25 | |
| 26 | if __name__ == "__main__": |
no outgoing calls
no test coverage detected
searching dependent graphs…