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
4
votes
2 answers

Pycaret - Stuck on Setup()

I'm using Pycaret classification to do some machine learning with my >1 million of data (this includes 18 categorical and 1 numerical features). Pandas Dataframe is storing the data pulled from Oracle database. These steps take about 2-3 minutes.…
rlee300
  • 59
  • 3
4
votes
2 answers

Build API using FastAPI for Classification Model produced using pycaret

I'm using pycaret as my ML workflow, I tried to create an API using FastAPI. This is my first time playing into production level, so I'm bit confused about API I have 10 features; age: float, live_province: str, live_city: str, live_area_big: str,…
ebuzz168
  • 1,134
  • 2
  • 17
  • 39
3
votes
1 answer

Trying to install pycaret but receiving an error

Having this error while installing pycaret through following command: !pip install pycaret.. error: subprocess-exited-with-error pip subprocess to install build dependencies did not run successfully. exit code: 1 note: This…
3
votes
4 answers

Module Not found when importing PyCaret in Jupyter

I'm trying to learn PyCaret but having a problem when trying to import it in Jupyter Lab. I'm working in a virtualenv and installed pycaret via pip: pip install pycaret I can confirm its installed via pip list: prompt-toolkit …
Foxtrot
  • 53
  • 1
  • 1
  • 5
2
votes
1 answer

How to resolve SystemError: initialization of _internal failed without raising an exception?

Problem I have written a code that takes some historical data as input. Assuming dataset has a timeseries format, I am trying to do a regression and find a predictor. Code For my project, I have four files: my_project.py, utilities.py, plotter.py,…
Rebel
  • 472
  • 8
  • 25
2
votes
1 answer

pycaret blend/stack tuned models

I am working on pycaret tool for automated regression. So, I get the top3 models using compare_models and blend them as shown below top3 = compare_models(n_select = 3) blender = blend_models(top3) But I would like to blend or stack the tuned models…
The Great
  • 7,215
  • 7
  • 40
  • 128
2
votes
1 answer

plot_model, evaluate_model (pycaret) not producing any output in Azure databricks

Im trying to evaluate / plot the various model results using pycaret but I'm not able to do so. for example :- from pycaret.datasets import get_data juice = get_data('juice') from pycaret.classification import * exp_name = setup(data = juice, …
Scope
  • 727
  • 4
  • 15
2
votes
1 answer

Error while installing PyCaret in GCP's JupyterLab

I am trying to install PyCaret in GCP(Google Cloud Platform) JupyterLab. I am getting error while installing the PyCaret package. I was using !pip install pycaret to install the package but I was getting this error. ERROR: Cannot uninstall…
2
votes
4 answers

ValueError: You must pass a freq argument as current index has none

I'm using pycaret.time_series alpha module but I have this problem avec launching my experiment. I think this is internal to the module. Can anyone help ? `from pycaret.time_series import * exp_name = setup(data = df ,index='ds', target='y', fold…
Yaovi
  • 61
  • 9
2
votes
3 answers

Why is the accuracy reported in pycaret higher than via sklearn for the same model and data?

I tried using pycaret for a machine learning project and got very high accuracies. When I tried to verify these using my sklearn code I found that I could not get the same numbers. Here is an example where I reproduce this issue on the public poker…
pieterbons
  • 1,604
  • 1
  • 11
  • 14
2
votes
0 answers

PyCaret PCA not working - ERROR: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None)

Pre-requisite Info: raw_df is a pandas dataframe that has 16 columns ('eeg_channel_1', 'eeg_channel_2',... 'eeg_channel_16') and 1140 rows (indexed from 125 to 1264) representing 1140 samples of EEG data (sample rate: 125 Hz). I referenced the…
2
votes
2 answers

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in Use AWS Glue Python with NumPy and Pandas Python Packages I am…
Jeong Kim
  • 481
  • 3
  • 9
  • 21
2
votes
1 answer

How to fix "ImportError: cannot import name '_raise_dep_warning_if_not_pytest' from 'sklearn.utils.deprecation'"?

I am trying to use Pycaret to do classification for an imbalanced dataset I installed Pycaret 2.3.1 and have sklearn 0.23.2 When I use the code from pycaret.classification import * I get the error Can you help me to fix this? Thanks in advance .
2
votes
1 answer

PyCaret: Classification Score vs Label Inconsistency

I am working on a binary classification task using PyCaret 2.3. The model stats look solid and I am okay to use this model for predictions (e.g. Accuracy=0.9) What I find confusing is the predictions generated. It seems the Score and Label do not…
S-UP
  • 83
  • 1
  • 8
2
votes
1 answer

PyCaret ValueError - Cell is Empty

I encountered an issue using PyCaret where a ValueError: Cell is empty is shown when I tried to create my model. Here is my code: !pip install pycaret from pycaret.utils import enable_colab enable_colab() import tensorflow as tf import numpy as…
Jasper Tan
  • 61
  • 4
1
2
3
15 16