Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GrahamboJangles opened this issue Jul 26, 2019 · 2 comments
Open

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

GrahamboJangles opened this issue Jul 26, 2019 · 2 comments

Comments

@GrahamboJangles
Copy link

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)
@dogabasaran
Copy link

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

@yanzhipingliu
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants