pycaret.anomaly.evaluate_model#
- pycaret.anomaly.evaluate_model(model, feature: str | None = None, fit_kwargs: dict | None = None)[source]#
This function displays a user interface for analyzing performance of a trained model. It calls the
plot_modelfunction internally.Example
>>> from pycaret.datasets import get_data >>> anomaly = get_data('anomaly') >>> from pycaret.anomaly import * >>> exp_name = setup(data = anomaly) >>> knn = create_model('knn') >>> evaluate_model(knn)
- model: scikit-learn compatible object
Trained model object
- feature: str, default = None
Feature to be used as a hoverover tooltip and/or label when the
labelparam is set to True. When feature is None, first column of the dataset is used by default.- fit_kwargs: dict, default = {} (empty dict)
Dictionary of arguments passed to the fit method of the model.
- Returns:
None
Warning
This function only works in IPython enabled Notebook.