Skip to content

Commit

Permalink
Update tensorflow_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dickensc committed Apr 27, 2024
1 parent e81b88e commit 0d13a63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def _prepare_data(self, data):
if len(data) == 2:
return data

return numpy.array([numpy.asarray(data[:, :-1]), numpy.asarray([[1, 0] if label == 0 else [0, 1] for label in data[:, -1]])])
return numpy.array([numpy.array(data[:, :-1]), numpy.array([[1, 0] if label == 0 else [0, 1] for label in data[:, -1]])])


def calculate_metrics(y_pred, y_truth, metrics):
Expand Down

0 comments on commit 0d13a63

Please sign in to comment.