From ffc365ae331eaaca73bd5f03ff352a006a4fe08c Mon Sep 17 00:00:00 2001 From: Stoufa Date: Mon, 19 Mar 2018 10:29:58 +0100 Subject: [PATCH] Fixed the ValueError: too many values to unpack get_data() returns 4 elements, I fixed this by adding 2 dummy variables dummy1 and dummy2 X, Y, dummy1, dummy2 = get_data() --- ann_class/sklearn_ann.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ann_class/sklearn_ann.py b/ann_class/sklearn_ann.py index 9c3ce2b4..1feff51f 100644 --- a/ann_class/sklearn_ann.py +++ b/ann_class/sklearn_ann.py @@ -17,7 +17,7 @@ from sklearn.utils import shuffle # get the data -X, Y = get_data() +X, Y, dummy1, dummy2 = get_data() # split into train and test X, Y = shuffle(X, Y)