(self, test_data, test_labels)
| 47 | raise |
| 48 | |
| 49 | def evaluate_model(self, test_data, test_labels): |
| 50 | try: |
| 51 | loss, accuracy = self.model.evaluate(test_data, test_labels) |
| 52 | logging.info(f"Model evaluation - Loss: {loss}, Accuracy: {accuracy}") |
| 53 | return loss, accuracy |
| 54 | except Exception as e: |
| 55 | logging.error(f"Error during model evaluation: {e}") |
| 56 | raise |
| 57 | |
| 58 | # Example usage |
| 59 | async def main(): |
nothing calls this directly
no outgoing calls
no test coverage detected