
verticapy.machine_learning.vertica.PMMLModel.predict¶
- PMMLModel.predict(vdf: Annotated[str | vDataFrame, ''], X: Annotated[str | list[str], 'STRING representing one column or a list of columns'], name: str | None = None, inplace: bool = True) vDataFrame ¶
Predicts using the input relation.
Parameters¶
- vdf: SQLRelation
Object used to run the prediction. You can also specify a customized relation, but you must enclose it with an alias. For example,
(SELECT 1) x
is valid, whereas(SELECT 1)
and “SELECT 1” are invalid.- X: SQLColumns
List of the columns used to deploy the models.
- name: str, optional
Name of the added vDataColumn. If empty, a name is generated.
- inplace: bool, optional
If set to True, the prediction is added to the vDataFrame.
Returns¶
- vDataFrame
the input object.