Open gabrown opened 7 months ago
Just some extra context for what seems to be causing the warning. I think it is the creation of the Patched class here. All the other model types only run the _check_soft_dependencies in the init of the model classes, and I guess this is only done during/after setup() has been called.
pycaret version checks
[X] I have checked that this issue has not already been reported here.
[X] I have confirmed this bug exists on the latest version of pycaret.
[X] I have confirmed this bug exists on the master branch of pycaret (pip install -U git+https://github.com/pycaret/pycaret.git@master).
Issue Description
Time Series setup allows the passing of a logger object to be passed, and all pycaret messages would be routed to that logger. However just importing the TSForecastingExperiment creates either warning or info messages about the dependancy on prophet and as it as at import time, it is not routed to the logger. This prevents me from creating my own logger to catch and handle the message in the way I want.
This can be problematic in scenarios where we want to control how warnings are logged and displayed, especially in production environments where we might want to suppress certain warnings or redirect them to specific logging channels.
Reproducible Example
Expected Behavior
I expect no logs and no logging file (logs.log) to be created
Actual Results
Installed Versions