You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 796, in compare_models
model, model_fit_time = self._create_model(**create_model_args)
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 1527, in _create_model
model, model_fit_time, model_results, _ = self._create_model_with_cv(
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 1121, in _create_model_with_cv
scores = cross_validate(
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/sklearn/model_selection/_validation.py", line 285, in cross_validate
_warn_or_raise_about_fit_failures(results, error_score)
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/sklearn/model_selection/_validation.py", line 367, in _warn_or_raise_about_fit_failures
raise ValueError(all_fits_failed_message)
ValueError:
All the 10 fits failed.
It is very likely that your model is misconfigured.
You can try to debug the error by setting error_score='raise'.
>>> from sklearn.model_selection import cross_val_score
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/patches/sklearn.py", line 135, in wrapper
if len(args[0]) > 1: # Has transformers
TypeError: object of type 'Lasso' has no len()
Actual Results
top models
Installed Versions
latest
The text was updated successfully, but these errors were encountered:
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
error is rasied in log for all the models
Reproducible Example
Expected Behavior
log file:
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 796, in compare_models
model, model_fit_time = self._create_model(**create_model_args)
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 1527, in _create_model
model, model_fit_time, model_results, _ = self._create_model_with_cv(
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/pycaret_experiment/supervised_experiment.py", line 1121, in _create_model_with_cv
scores = cross_validate(
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/sklearn/model_selection/_validation.py", line 285, in cross_validate
_warn_or_raise_about_fit_failures(results, error_score)
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/sklearn/model_selection/_validation.py", line 367, in _warn_or_raise_about_fit_failures
raise ValueError(all_fits_failed_message)
ValueError:
All the 10 fits failed.
It is very likely that your model is misconfigured.
You can try to debug the error by setting error_score='raise'.
File "/home/cilvo-simon/.local/lib/python3.10/site-packages/pycaret/internal/patches/sklearn.py", line 135, in wrapper
if len(args[0]) > 1: # Has transformers
TypeError: object of type 'Lasso' has no len()
Actual Results
Installed Versions
latest
The text was updated successfully, but these errors were encountered: