From d393a1ed3660b34342f05d9c36a4d1595753b1eb Mon Sep 17 00:00:00 2001 From: alexszameitat <50316617+alexszameitat@users.noreply.github.com> Date: Wed, 5 Jun 2019 15:43:00 +0200 Subject: [PATCH] Added indentation, so manual calculation is correct --- build/python/hello_world_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/python/hello_world_example.py b/build/python/hello_world_example.py index b6bdb01b..301a6f37 100644 --- a/build/python/hello_world_example.py +++ b/build/python/hello_world_example.py @@ -67,8 +67,8 @@ def main(): for i in range(test_data.getNumSamples()): pipeline.predict(test_data.get(i).getSample()) - if test_data.get(i).getClassLabel() == pipeline.getPredictedClassLabel(): - test_accuracy += 1 + if test_data.get(i).getClassLabel() == pipeline.getPredictedClassLabel(): + test_accuracy += 1 print("Manual test accuracy: %.3f" % (float(test_accuracy) / float(test_data.getNumSamples()) * 100.0))