Model.deploySQL

In [ ]:
Model.deploySQL()

Returns the SQL code needed to deploy the model.

Returns

str / list : the SQL code needed to deploy the model.

Example

In [7]:
from verticapy.learn.tsa import VAR
model = VAR(name = "public.VAR_texas", p = 3)
model.drop()
model.fit(input_relation = "Texas", 
          X = ["cases", "deaths"],
          ts = "date")
display(model.deploySQL())
['33.0242819638806 + 1.56560149750163 * ar0_1 + -0.526142671717025 * ar0_2 + 0.0549353759615769 * ar0_3 + -0.746106607664842 * ar1_1 + 0.57024484599242 * ar1_2 + -2.77204942295793 * ar1_3',
 '0.33654232255526 + 0.00610476080213651 * ar0_1 + -0.01877254141516 * ar0_2 + 0.0220073004932715 * ar0_3 + 0.88174030079108 * ar1_1 + 0.0809371182349423 * ar1_2 + -0.251110540245463 * ar1_3']