(self, connection_status)
| 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: |
no test coverage detected