From 0d13a634371cddd947287a49cafd7c37393723de Mon Sep 17 00:00:00 2001 From: Charles Dickens Date: Sat, 27 Apr 2024 15:48:57 -0700 Subject: [PATCH] Update tensorflow_model.py --- .../tests/resources/models/deeppsl/sign/tensorflow_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psl-python/tests/resources/models/deeppsl/sign/tensorflow_model.py b/psl-python/tests/resources/models/deeppsl/sign/tensorflow_model.py index 9b158d73b..d42c2fca1 100755 --- a/psl-python/tests/resources/models/deeppsl/sign/tensorflow_model.py +++ b/psl-python/tests/resources/models/deeppsl/sign/tensorflow_model.py @@ -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):