Skip to content

Commit

Permalink
Create evaluation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored May 11, 2024
1 parent 78361d3 commit 4c37101
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions machine_learning/evaluation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import tensorflow as tf

def evaluate_model(model, data, labels):
# Evaluate the performance of the trained model
loss, metric = model.evaluate(data, labels)

return loss, metric

0 comments on commit 4c37101

Please sign in to comment.