MCPcopy Create free account
hub / github.com/KOSASIH/skybridge / predict_latency

Method predict_latency

ai/model.py:40–47  ·  view source on GitHub ↗
(self, connection_status)

Source from the content-addressed store, hash-verified

38 raise
39
40 async def predict_latency(self, connection_status):
41 try:
42 input_data = self.prepare_input_data(connection_status)
43 predicted_latency = self.model.predict(input_data)
44 return predicted_latency[0][0] # Assuming the model outputs a single value
45 except Exception as e:
46 logging.error(f"Error during prediction: {e}")
47 raise
48
49 def evaluate_model(self, test_data, test_labels):
50 try:

Callers 1

mainFunction · 0.95

Calls 1

prepare_input_dataMethod · 0.95

Tested by

no test coverage detected