Questions tagged [pycaret]

Use this tag for questions regarding the use of the PyCaret machine learning library.

PyCaret is an open source, low-code machine learning library for Python.

Official website of PyCaret

230 questions
11
votes
4 answers

Cannot import name 'soft_unicode' from 'markupsafe' in google colab

I'm trying to install pycaret==3.0.0 in google colab, But I'm having a problem, the library requires Jinja2 to be installed which I did, but then It finally throws off another error. ImportError Traceback (most recent…
Kalu Samuel
  • 145
  • 1
  • 1
  • 5
10
votes
3 answers

Unable to resolve import error from PyCaret

I am trying to install pycaret by creating an environment in anaconda (python 3.8). Everything is fine except when i tried to from pycaret.classification import * i shows an error despite the fact that i have installed all dependencies: ImportError:…
hadija
  • 107
  • 1
  • 5
10
votes
3 answers

ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True

When i try to train some thing in pycreat i recive this error message ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True. from pycaret.regression import…
guilherme guerra
  • 161
  • 1
  • 2
  • 5
9
votes
1 answer

GitHub Action is being killed

I'm running a little python project to collect data. It's being triggered by a scheduled GitHub Action script (every midnight). As part of expanding the project I've added the pycaret library to the project. So currently installing the requirements…
Bored002
  • 353
  • 6
  • 18
8
votes
4 answers

AttributeError: 'SimpleImputer' object has no attribute '_validate_data' in PyCaret

I am using PyCaret and get an error. AttributeError: 'SimpleImputer' object has no attribute '_validate_data' Trying to create a basic instance. # Create a basic PyCaret instance import pycaret from pycaret.regression import * mlb_pycaret =…
Anakin Skywalker
  • 2,400
  • 5
  • 35
  • 63
6
votes
2 answers

Pycaret - 'Make_Time_Features' object has no attribute 'list_of_features'

I am trying to create a model using pycaret just as: from pycaret.classification import * clf1 = setup(data = dt, target = 'group') lr = create_model('lr') Then I get: AttributeError: 'Simple_Imputer' object has no attribute…
Gustavomoty
  • 87
  • 1
  • 5
5
votes
1 answer

pycaret.time_series.TSForecastingExperiment ImportError: cannot import name '_check_param_grid' from 'sklearn.model_selection._search'

I am getting the below error, while importing Pycaret time-series(beta) module in the databricks (we were running successfully earlier). Request your help in solving the issues. pycaret version in use: import pycaret pycaret.__version__ # Out[1]:…
nikn8
  • 1,016
  • 8
  • 23
5
votes
4 answers

AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical'' in PyCaret

I am using PyCaret and get an error. AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical' Trying to create a basic instance. !pip install pycaret==1.0 from pycaret.regression import * exp_reg = setup(data=df,…
guilherme guerra
  • 161
  • 1
  • 2
  • 5
5
votes
2 answers

Probabilities on pycaret do not match the predicted label

I’m working on a classification model with pycaret using the code below: sample = pd.DataFrame(sample) exp_clf = setup(sample, target = 'match',fix_imbalance = True) clf_model = create_model('lightgbm') tuned_clf_model = tune_model(clf_model,…
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181
5
votes
1 answer

"Estimator xgboost not available" for PyCaret in google colab?

Title. For some reason, xgboost isn't showing up as an option for models I can use in pycaret's regression module. I've installed it as needed link to colab
rbb
  • 89
  • 1
  • 5
5
votes
2 answers

Early stopping with Pycaret? Overfitting with Catboost and XGBoost

I'm comparing the performance of Catboost, XGBoost and LinearRegression in Pycaret. Catboost and XGBoost are untuned. So far I see that Catboost and XGBoost are overfitting. For linear regression train/test-score is train R2: 0.72, test R2: 0.65 Is…
Tldr
  • 177
  • 1
  • 11
4
votes
2 answers

installing pycaret library not completed due to an error

I am trying to install pycaret library but gives me an error. I have tried to update pip but nothing changed error: could not create…
4
votes
3 answers

Different results on anomaly detection bettween pycaret and H2O

I'm working on detect anomalies from the following data: It comes from a processed signal of and hydraulic system, from there I know that the dots in the red boxes are anomalies happen when the system fails. I'm using the first 3k records to train…
Luis Ramon Ramirez Rodriguez
  • 9,591
  • 27
  • 102
  • 181
4
votes
2 answers

PyCaret methods on GPU/TPU

When I ran best_model = compare_models() there is a huge load on CPU memory, while my GPU is unutilized. How do I run the setup() or compare_models() on GPU? Is there an in-built method in PyCaret?
LITDataScience
  • 380
  • 5
  • 14
4
votes
1 answer

Pycaret.regression.compare_models: Evaluation table neither returned nor shown

pycaret is a very compact tool to compare models that I wanted to use for model selection. Unfortunately, the method compare_models does not show the typical output table that you see everywhere. I am using pycaret in PyCharm and not Jupyter…
C Hecht
  • 932
  • 5
  • 14
1
2 3
15 16