Use the evaluate() function to evaluate on data using model rank in leaderboard and generate performance metrics. Returns DataFrame with performance metrics.
Raises TeradataMlException.
If both fit and load methods are called before predict, then fit method model will be used for prediction by default unless 'use_loaded_models' is set to True in predict.
Required argument:
- data specifies the dataset on which performance metrics needs to be generated.
Types: teradataml DataFrame
Target column used for generating model is mandatory in data for evaluation.
Optional arguments:
- rank specifies the rank of the model available in the leaderboard to be used for evaluation.
Default value: 1
Types: int
- use_loaded_models specifies whether to use loaded models from database for prediction or not.
Default value: False
Types: bool