bulbea
bulbea copied to clipboard
not enough values to unpack (expected 5, got 4)
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)
If you look at the split function, you'll see it only returns 4 values. Delete scaler.
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'