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
1
vote
0 answers

CatBoost and compare_models() issue in python

Using PyCaret, when I apply a compare_models(), and that a catboost is found to be the best, I cannot print it, while I can do it for all the others. So I cannot use it to test predictions, for example. I'm using PyCaret version 2.2.0 and Python…
Lumber Jack
  • 602
  • 3
  • 9
1
vote
0 answers

ModuleNotFoundError: No module named 'pycaret.internal'

I am trying to deploy a ML model using Streamlit and Pycaret on Heroku. When I try deploying the app, I get the following error: ModuleNotFoundError: No module named 'pycaret.internal' Traceback: File…
Aastha Jha
  • 153
  • 1
  • 2
  • 14
1
vote
1 answer

PyCaret - How to have similar output in Spyder as Jupyter Notebook

I am running setup and comparing functions of PyCaret in Spyder. According to PyCaret documentation, there is always a grid as an output result. I realized that documentation took for granted that code is running in Jyputer Notebook. I am using…
Grkjohny
  • 11
  • 1
1
vote
1 answer

PyCaret predict_model() method fails with Pipeline not Found error

I have trained my pycaret model locally and then later on I pushed it to S3. Now I want to run a predict_model() method on my bigger production datasets. Using boto3 I copy my model pickle file from S3 to a master node of my Spark EMR cluster. Then…
Regressor
  • 1,843
  • 4
  • 27
  • 67
1
vote
0 answers

Pycaret Anomaly Plot_model

I am using the anomaly module in Pycaret. It is an impressive program and easy to use. plot_model(knn, plot="umap", save=True) engenders a nice umap plot, see pdf. This interactive plot identifies the x=0 and y=1 coordinates with hovering. I would…
Rex Smith
  • 11
  • 2
1
vote
2 answers

How I can solve the ERROR: Command errored out with exit status 1?

I'm trying to install the package "Pycaret" and work with a Windows on the AWS environment. While I have been able to successfully install other libraries I get an error when I try to install Pycaret. !{sys.executable} -m pip install pycaret…
Minfetli
  • 303
  • 3
  • 12
1
vote
0 answers

Unsupervised Sentiment Analysis pycaret

Is it possible to conduct unsupervised sentiment analysis with Pycaret library if you have an unlabel dataset? Any valid alternative and suggestion will be appreciated too
oss
  • 11
  • 1
1
vote
1 answer

Side by side plots in pycaret

I am doing regression analysis in pycaret, and plotted residuals and errors. # create a model bgr = create_model('gbr') # residuals plot plot_model(gbr, plot = 'residuals') # errors plot plot_model(gbr, plot = 'error') is there a way I can plot…
1
vote
6 answers

How to save a pycaret plot?

I'm trying to save a pycaret plot but only get a blank file: plt.figure(figsize = (18,9)) plot_model(pycaret_xgboost, 'auc') plt.savefig('ROC_xboost.svg')
0
votes
0 answers

Pycaret installation on Mac unsuccessful via pip

I navigate to the python3.11 folder and execute the pip3 install pycaret (also tried pip install pycaret) command to install pycaret. -The installation goes on for a long time and it struck to try installing different versions of pandas from 1.4.4…
Sinha
  • 431
  • 1
  • 5
  • 12
0
votes
0 answers

Pycaret - Setting n_jobs in model_tune()

I would like to use multiprocessing by specifying the n_jobs parameter in sklearn.model_selection.RandomizedSearchCV I would like to specify this through the pycaret wrapper in pycaret.classification.tune_model. I have tried passing the n_jobs as…
Carl C
  • 135
  • 8
0
votes
0 answers

AttributeError: module 'xgboost' has no attribute '__version__'

I'm receving this error (AttributeError: module 'xgboost' has no attribute 'version') while trying to build AutoML model using pycaret import pandas as pd import streamlit as st from ydata_profiling import profile_report from…
0
votes
0 answers

AttributeError: module 'pycaret' has no attribute 'utils'

I got the data from datasets and imported its working fine. But when I try to compile this code below: from pycaret.classification import ClassificationExperiment s = ClassificationExperiment() s.setup(data, target = 'Class variable', session_id =…
0
votes
0 answers

pyacret predict_model() function throwing exception in aws lambda

I have been trying to predict a model using pycaret on aws lambda and its throwing this weird exception. It seems like its trying to write something in the lambda directory which is read only. File…
Aks
  • 23
  • 2
0
votes
0 answers

Pycaret tune_model on saved models returns an error

I ran the compare_models and returned the top 4 models. I then saved this 4 models to the disk. Now when I try to tune_model by loading this saved models I get a ValueError: When passing a model not in PyCaret's model library, the custom_grid…
Bappa
  • 71
  • 6