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

time series #23

Closed
Winthan opened this issue Nov 25, 2020 · 1 comment
Closed

time series #23

Winthan opened this issue Nov 25, 2020 · 1 comment
Assignees

Comments

@Winthan
Copy link

Winthan commented Nov 25, 2020

When I am trying to use time series, it is having a problem, I tried adding",", end of each object as well, it is not working for some reasons. Spyder is showing invalid syntax.


import mindsdb
import pandas as pd

mdb = mindsdb.Predictor(name="ES-price")

mdb.learn(
    from_data="ES.csv",  
    to_predict='close',
    timeseries_settings = {
      order_by: ['timestamp']
      nr_predictions: 3
      use_previous_target: True 
      window: 100
    }
)

nr_predictions: 3
^

SyntaxError: invalid syntax

How can I create a time series prediction with mindsdb?

If I use only order_by, it is saying order_by is not defined at all.

mdb.learn(
    from_data="ES.csv",  
    to_predict='close',
    timeseries_settings = {
    order_by: ['timestamp']
      
    }
)

```

**order_by: ['timestamp']

NameError: name 'order_by' is not defined**
@ZoranPandovski
Copy link
Member

Answered in mindsdb. The problem was in the wrong syntax.

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

2 participants