Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ predict
Method
predict
tests/test_tracking_inference.py:31–32 ·
view source on GitHub ↗
(self, input_data)
Source
from the content-addressed store, hash-verified
29
self.model = mock_load_model()
30
31
def
predict(self, input_data):
32
heavy_computation(input_data)
33
34
35
class
TestCarbonInferenceTracker(unittest.TestCase):
Callers
3
test_tracker_measures_correctly_each_inference_from_task
Method · 0.95
test_tracker_outputs_data_point_for_each_task_logged
Method · 0.95
predict
Function · 0.80
Calls
1
heavy_computation
Function · 0.70
Tested by
no test coverage detected