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
0
votes
1 answer

Pycaret error : TypeError: format() got an unexpected keyword argument 'precision'

I'm using the compare_models() function for the classification problem in pycaret. It was running well during the process but in the end, it does not print anything but an empty list. clf1 = setup(data = train_titanic_df, target =…
0
votes
2 answers

Why are there an error to importing nlp module of pycaret?

I've been trying to import the pycaret "nlp" module into a colab notebook but I've gotten the following error: ImportError: cannot import name 'nlp' from 'pycaret' (/usr/local/lib/python3.10/dist-packages/pycaret/init.py). I come here because…
0
votes
0 answers

Different imputation approaches for different numeric columns using Pycaret 3.0

I need to specify different imputation approaches for different columns using Pycaret 3.0. I couldn't find a solution in Pycaret docs but when I ask ChatGPT, it mentions this code which does not work: from pycaret.datasets import get_data from…
user2895779
  • 151
  • 1
  • 3
0
votes
0 answers

Pycaret compare_models() function does not show output in Jupyter Notebook within VS Code

I am seeing difference in behavior of the function compare_models() between how it runs on my Jupyter Notebooks via Anaconda vs Jupyter Notebook within VS Code. When I execute in the former, the call of compare_models() in a cell returns a color…
0
votes
1 answer

Python PyCaret script in Microsoft Power BI

I try to run this script in Power BI: from pycaret.anomaly import * dataset = get_outliers(dataset, ignore_features=['DEPT_NAME', 'MERCHANT', 'TRANS_DT']) I got the script from…
0
votes
1 answer

Pycaret, predict soil moisture to minimize water consumption

I want to predict soil moisture for a field to minimize water consumption. For that I recorded only soil moisture and soil temperture over the course of two months. There are four devices that give me the values in 10min interval for one field. So I…
AldegarRızvan
  • 188
  • 4
  • 12
0
votes
1 answer

Is there a way to not display a plot when calling Pycaret's plot_model()?

I want to use pycaret's plot_model to save a plot image, however I don't want to display the plot. I'm looping through many figures and models and therefore displaying all the plots is resulting in a memory. Ideally I'm looking for something like…
0
votes
1 answer

Is there an option in Pycaret to stop looking for best model if the current models achieve a desired performance

I have a data frame with 860k rows, and I am using GPU but still very slow. I decided to stop the training, and I am satisfied with the performance of the last model. Is there an option in Pycaret to stop looking for the best model if the current…
Hamzah
  • 8,175
  • 3
  • 19
  • 43
0
votes
0 answers

PyCaret - Time Series Forecasting - Forecasted value is way off then the Actual

I have start using PyCaret v3.0.x for Time Series Forecasting. I had pass on the data for a single store and single channel along with the transactions with data starting from 2021 with a frequency of month. The numbers seems to be way off as…
0
votes
1 answer

PyCaret v3.0 - _CURRENT_EXPERIMENT global variable is not set

We are getting the following error after running either check_stats() or compare_models() functions from PyCaret versiob 3.0.x; "_CURRENT_EXPERIMENT global variable is not set. Please run setup() first." Is there any pointer that how this can be…
0
votes
1 answer

not able to show both insample and out-of-sample plots for pycaret time series in streamlit columns

I am making a Streamlit application to do experimentation on data using pycaret time series. I created a function to return the experiment and return the information I need, but for some reason I am getting only one of the 2 plots I am returning…
Sam.H
  • 193
  • 2
  • 14
0
votes
1 answer

How to fix error of "libomp.dylib cannot be found" while trying to importing PyCaret

I have a Macbook M1 pro. When I was trying to import pycaret in python, I got this error. After hours of searching, I applied all solutions but none of them solved my problem. I tried to install libomp with "brew install libomp" but it didn't work.…
ufukyılmaz
  • 51
  • 1
  • 6
0
votes
1 answer

Unable to capture or show the compare_model() metrics in streamlit

I have created streamlit app to allow me to run multiple experiments on a dataset using PyCaret Time series. My problem is that I am unable to capture and show the compare_model() results table in my streamlit app, (the metrics table that shows the…
Sam.H
  • 193
  • 2
  • 14
0
votes
0 answers

Install pycaret library in AWS Airflow DAG

I am facing an issue installing pycaret library in airflow DAG. I have added the library for installation in the bootstrap file, however, I am getting ModuleNotFoundError: No module named 'pycaret' during execution. Following are the logs captured,…
Aashish
  • 1
  • 1
0
votes
0 answers

PyCaret: "y_pred" in the training

For some reasons, we need to have access to the training predicted values in regression or Labels in classification (y_pred). Unfortunately, I could not find a valid solution for that. Just wondering if there is any option to have access to the…
Iman B
  • 1
  • 1