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

Method evaluate_model

ai/model.py:49–56  ·  view source on GitHub ↗
(self, test_data, test_labels)

Source from the content-addressed store, hash-verified

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
59async def main():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected