pycaret.classification.create_app#

pycaret.classification.create_app(estimator, app_kwargs: dict | None = None) None[source]#

This function creates a basic gradio app for inference. It will later be expanded for other app types such as Streamlit.

Example

>>> from pycaret.datasets import get_data
>>> juice = get_data('juice')
>>> from pycaret.classification import *
>>> exp_name = setup(data = juice,  target = 'Purchase')
>>> lr = create_model('lr')
>>> create_app(lr)
estimator: scikit-learn compatible object

Trained model object

app_kwargs: dict, default = {} (empty dict)

arguments to be passed to app class.

Returns:

None