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

Error while running TrainBot.py #4

Open
ryzen3100 opened this issue May 3, 2021 · 0 comments
Open

Error while running TrainBot.py #4

ryzen3100 opened this issue May 3, 2021 · 0 comments

Comments

@ryzen3100
Copy link

Hi,
I am getting this error when trying to run the default uncommented TrainBot.py:
Is it unable to fetch data from binance?

Traceback (most recent call last):
  File ".\TrainBot.py", line 58, in <module>
    preds = model.predict(tstx)
  File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\ensemble\_gb.py", line 1188, in predict
    raw_predictions = self.decision_function(X)
  File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\ensemble\_gb.py", line 1143, in decision_function
    X = check_array(X, dtype=DTYPE, order="C", accept_sparse='csr')
  File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f
    return f(*args, **kwargs)
  File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\sklearn\utils\validation.py", line 726, in check_array
    raise ValueError("Found array with %d sample(s) (shape=%s) while a"
ValueError: Found array with 0 sample(s) (shape=(0, 124)) while a minimum of 1 is required.
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

1 participant