Model.deploySQL¶
In [ ]:
Model.deploySQL(X: list = [],
test_relation: str = "",
key_columns: 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. |
test_relation | str | ✓ | Relation to use to do the predictions. |
key_columns | list | ✓ | Columns which are not used but to keep during the computations. |
Returns¶
str : the SQL code needed to deploy the model.
Example¶
In [11]:
from verticapy.learn.neighbors import KNeighborsRegressor
model = KNeighborsRegressor(name = "public.KNN_iris")
model.fit("public.iris", ["PetalLengthCm", "SepalLengthCm"], "SepalWidthCm")
display(model.deploySQL())
