From 0a4f4b36fd26a9011ea669a836c418d93b4fcc69 Mon Sep 17 00:00:00 2001 From: cthomas <charles.thomas@uclouvain.be> Date: Sun, 16 Dec 2018 17:58:49 +0100 Subject: [PATCH] converting numpy array to list when printing --- template/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/main.py b/template/main.py index 17dd296..d88dd25 100644 --- a/template/main.py +++ b/template/main.py @@ -210,7 +210,7 @@ def train_and_evaluate(minsup, database, subsets): pos_support = len(gid_subsets[0]) print('{} {}'.format(pattern, pos_support)) # printing classification results: - print(predicted) + print(predicted.tolist()) print('accuracy: {}'.format(accuracy)) print() # Blank line to indicate end of fold. -- GitLab