Skip to content

plot_model bug in time_series module #1613

@moezali1

Description

@moezali1

I noticed a new bug in the plot_model function of pycaret.time_series:

from pycaret.datasets import get_data
data = get_data('airline')

from pycaret.time_series import *
s = setup(data, fold = 5, fh = 12, session_id = 123)

plot_model('abc')

image

Notice that no matter what if no estimator is passed the ts plot is generated by default which is expected behavior. The problem is it is not stopping users to pass whatever is in the plot name (for example I passed abc).

Expected Behavior: Exception must be triggered if the plot name is not in the list of allowed plots, irrespective of the estimator is passed or not.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtime_seriesTopics related to the time series

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions