You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* readme long/wide clarification
* readme II
* long=True to all + fix errors in data shaping
* working with wide
* Update extended_tutorial.md
* minor printing nuisances sklearn
* further readme updates
* 0.2.5
* try that again
Copy file name to clipboardExpand all lines: README.md
+24-16Lines changed: 24 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,33 +21,42 @@ For other time series needs, check out the list [here](https://github.com/MaxBen
21
21
* Option to use one or a combination of metrics for model selection
22
22
* Import and export of templates allowing greater user customization
23
23
24
-
## Basic Use
24
+
## Installation
25
25
```
26
26
pip install autots
27
27
```
28
28
This includes dependencies for basic models, but additonal packages are required for some models and methods.
29
29
30
-
Input data is expected to come in a 'long' format with three columns:
31
-
* Date (ideally already in pd.DateTime format)
32
-
* Value
33
-
* Series ID. For a single time series, series_id can be `= None`.
30
+
## Basic Use
31
+
32
+
Input data is expected to come in either a *long* or a *wide* format:
34
33
35
-
The column name for each of these is passed to .fit().
34
+
- The *wide* format is a `pandas.DataFrame` with a `pandas.DatetimeIndex` and each column a distinct series.
35
+
- The *long* format has three columns:
36
+
- Date (ideally already in pd.DateTime format)
37
+
- Series ID. For a single time series, series_id can be `= None`.
38
+
- Value
39
+
- For *long* data, the column name for each of these is passed to .fit() as `date_col`, `id_col`, and `value_col`. No parameters are needed for *wide* data.
36
40
37
41
```
38
-
39
42
# also: _hourly, _daily, _weekly, or _yearly
40
-
from autots.datasets import load_monthly
43
+
from autots.datasets import load_monthly
44
+
41
45
df_long = load_monthly()
42
46
43
47
from autots import AutoTS
44
-
model = AutoTS(forecast_length=3, frequency='infer',
45
-
prediction_interval=0.9, ensemble='all',
46
-
model_list='superfast',
47
-
max_generations=5, num_validations=2,
48
-
validation_method='even')
49
-
model = model.fit(df_long, date_col='datetime',
50
-
value_col='value', id_col='series_id')
48
+
49
+
model = AutoTS(
50
+
forecast_length=3,
51
+
frequency='infer',
52
+
prediction_interval=0.9,
53
+
ensemble='all',
54
+
model_list='superfast',
55
+
max_generations=5,
56
+
num_validations=2,
57
+
validation_method='even',
58
+
)
59
+
model = model.fit(df_long, date_col='datetime', value_col='value', id_col='series_id')
0 commit comments