8000
[BUG]: TypeError: create_model() got multiple values for argument 'estimator' #4071
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
The
create_model
method forRegressionExperiment
accepts**kwargs
for estimator parameters. However, some of the estimator parameters share the same name as the arguments in thecreate_model()
method itself. This results in errors such as:Reproducible Example
Expected Behavior
Succeeded in using exp.create_model("ada", **ada_model_params).
Actual Results
Installed Versions
PyCaret required dependencies:
pip: 23.0.1
setuptools: 74.0.0
pycaret: 3.3.2
IPython: 8.18.1
ipywidgets: 8.1.5
tqdm: 4.66.5
numpy: 1.26.4
pandas: 2.1.4
jinja2: 3.1.4
scipy: 1.11.4
joblib: 1.3.2
sklearn: 1.4.2
pyod: 2.0.1
imblearn: 0.12.3
category_encoders: 2.6.3
lightgbm: 4.5.0
numba: 0.60.0
requests: 2.32.3
matplotlib: 3.7.5
scikitplot: 0.3.7
yellowbrick: 1.5
plotly: 5.23.0
plotly-resampler: Not installed
kaleido: 0.2.1
schemdraw: 0.15
statsmodels: 0.14.2
sktime: 0.26.0
tbats: 1.1.3
pmdarima: 2.0.4
psutil: 6.0.0
markupsafe: 2.1.5
pickle5: Not installed
cloudpickle: 3.0.0
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: 2.16.0
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: