bulbea icon indicating copy to clipboard operation
bulbea copied to clipboard

not enough values to unpack (expected 5, got 4)

Open GrahamboJangles opened this issue 5 years ago • 2 comments

scaler, Xtrain, Xtest, ytrain, ytest = split(share, 'Close', normalize = True)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-16-6857080bc17c> in <module>()
----> 1 scaler, Xtrain, Xtest, ytrain, ytest = split(share, 'Close', normalize = True)

ValueError: not enough values to unpack (expected 5, got 4)

GrahamboJangles avatar Jul 26 '19 17:07 GrahamboJangles

If you look at the split function, you'll see it only returns 4 values. Delete scaler.

dogabasaran avatar Mar 22 '20 17:03 dogabasaran

How can I use split function?

Xtrain, Xtest, ytrain, ytest = split(share, 'Close', normalize = True) Traceback (most recent call last): File "", line 1, in NameError: name 'split' is not defined Xtrain, Xtest, ytrain, ytest = bb.split(share, 'Close', normalize = True) Traceback (most recent call last): File "", line 1, in AttributeError: module 'bulbea' has no attribute 'split'

yanzhipingliu avatar Aug 25 '20 00:08 yanzhipingliu