[BUG]: Longer reported times for initial execution of compare_models in regression experiment #4161
Open
3 tasks done
Labels
bug
Something isn't working
Uh oh!
There was an error while loading. Please reload this page.
pycaret version checks
I have checked that this issue has not already been reported here.
I have confirmed this bug exists on the latest version of pycaret.
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
When compare_models is run for the first time in a script, the time results of some of the tested models are not correct. Tested only in regression scenarios.
The 'lr' models shows biggest percentage difference, but other models are affected as well.
Reproducible Example
Expected Behavior
TT (Sec)1: 0.006
TT (Sec)2: 0.006
Name: lr, dtype: float64
Actual Results
Installed Versions
PyCaret required dependencies:
pip: 25.0.1
setuptools: 65.5.0
pycaret: 3.4.0
IPython: 8.35.0
ipywidgets: 8.1.6
tqdm: 4.67.1
numpy: 1.26.4
pandas: 2.1.4
jinja2: 3.1.6
scipy: 1.11.4
joblib: 1.4.2
sklearn: 1.4.2
pyod: 2.0.4
imblearn: 0.13.0
category_encoders: 2.7.0
lightgbm: 4.6.0
numba: 0.61.2
requests: 2.32.3
matplotlib: 3.7.5
scikitplot: 0.3.12
yellowbrick: 1.5
plotly: 5.24.1
plotly-resampler: Not installed
kaleido: 0.2.1
schemdraw: 0.15
statsmodels: 0.14.4
sktime: 0.31.0
tbats: 1.1.3
pmdarima: 2.0.4
psutil: 7.0.0
markupsafe: 3.0.2
pickle5: Not installed
cloudpickle: 3.1.1
deprecation: 2.1.0
xxhash: 3.5.0
wurlitzer: 3.1.1
PyCaret optional dependencies:
shap: Not installed
interpret: Not installed
umap: Not installed
ydata_profiling: Not installed
explainerdashboard: Not installed
autoviz: Not installed
fairlearn: Not installed
deepchecks: Not installed
xgboost: Not installed
catboost: Not installed
kmodes: Not installed
mlxtend: Not installed
statsforecast: Not installed
tune_sklearn: Not installed
ray: Not installed
hyperopt: Not installed
optuna: Not installed
skopt: Not installed
mlflow: Not installed
gradio: Not installed
fastapi: Not installed
uvicorn: Not installed
m2cgen: Not installed
evidently: Not installed
fugue: Not installed
streamlit: Not installed
prophet: Not installed
The text was updated successfully, but these errors were encountered: