Model.deploySQL

In [ ]:
Model.deploySQL(X: list = [])

Returns the SQL code needed to deploy the model.

Parameters

Name Type Optional Description
X
list
✓
List of the columns used to deploy the model. If empty, the model predictors will be used.

Returns

str : the SQL code needed to deploy the model.

Example

In [61]:
from verticapy.learn.preprocessing import Normalizer
model = Normalizer(name = "public.norm_iris")
model.fit("public.iris", ["PetalLengthCm", "SepalLengthCm", "SepalWidthCm"])
display(model.deploySQL())
APPLY_NORMALIZE("PetalLengthCm", "SepalLengthCm", "SepalWidthCm" USING PARAMETERS model_name = 'public.norm_iris', match_by_pos = 'true')