Model.fit¶
In [ ]:
Model.fit(input_relation: (str, vDataFrame),
y: str,
ts: str,
X: list = [],
test_relation: (str, vDataFrame) = "")
Trains the model with a timeseries aggregate functions.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
input_relation | str / vDataFrame | ❌ | Training relation. |
y | str | ❌ | Response column. |
ts | str | ❌ | vcolumn used to order the data. |
X | list | ❌ | exogenous columns used to fit the model. |
test_relation | str / vDataFrame | ✓ | Relation to use to test the model. |
Returns¶
object : self
Example¶
In [4]:
from verticapy.learn.tsa import SARIMAX
model = SARIMAX(name = "SARIMAX_amazon",
s = 12,
P = 4)
model.drop()
model.fit(input_relation = "amazon_clean",
y = "number",
ts = "date")
Out[4]:
