alteryx / alteryx/evalml

ExponentialSmoothingRegressor predicts horizontal line for yahoo data

Aperta
#3,303 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
850
Fork
96
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

#### Code Sample, a copy-pastable example to reproduce your bug.

```python
import pandas as pd
from evalml.pipelines.components import ExponentialSmoothingRegressor
from evalml.preprocessing import split_data

X = pd.read_csv("/Users/freddy.boulton/Downloads/yahoo_stock.csv")
y = X.pop("Close")
X = X[["Date"]]

problem_configuration = {"gap": 0, "max_delay": 50, "forecast_horizon": 20,
"time_index": "Date"}

X_train, X_valid, y_train, y_valid = split_data(X, y, "time series regression", problem_configuration)

esr = ExponentialSmoothingRegressor()
esr.fit(X_train, y_train)
esr.predict(X_valid).plot()
```
![image](https://user-images.githubusercontent.com/41651716/152258465-dab37809-28e7-4685-8649-e23ea59c909e.png)

[yahoo_stock.csv.zip](https://github.com/alteryx/evalml/files/7990830/yahoo_stock.csv.zip)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.