Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
  • Loading branch information
stoufa authored Mar 19, 2018
commit ffc365ae331eaaca73bd5f03ff352a006a4fe08c
2 changes: 1 addition & 1 deletion ann_class/sklearn_ann.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down