Questions tagged [pycaret]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

how to use pyCaret for Semi-supervised hybrid model

I am having a semi-supervised model consisting of Random Forest Classifier and LOF that can be used for anomaly detection. I want to make use of PyCaret to implement this. I see, there is a way to ...
Shubratha's user avatar
0 votes
0 answers
18 views

Using ray on Databricks I got error ArrowInvalid: URI has empty scheme: '~/ray_results'

On a databricks notebook I'm running %pip install jinja2 --upgrade %pip install mlflow --upgrade %pip install pycaret==3 catboost optuna lightgbm hyperopt tune-sklearn ray[tune] %pip install pandas==1....
Carlo's user avatar
  • 395
-1 votes
1 answer
20 views

Preprocessing: Categorical vs Continuous variables [closed]

I am currently trying to pre-process data for a classification ML model. I have both categorical and continuos variables. These questions came to my mind: If I have a continuous variable that has a ...
Andres Portocarrero's user avatar
0 votes
0 answers
10 views

why do pycaret use ordinal feature when i have used the option as none in setup

in my example of pycaret setup i have used the ordinal_features=None option, but when i print the features, i see pycaret has used some features as ordinal. I dont want it to be ordinal but just ...
Lalit's user avatar
  • 1
1 vote
1 answer
78 views

ModuleNotFoundError: No module named 'pycaret.arules'

I want to use the Association Rule Mining package from PyCaret. I installed the same using: pip install pycaret[full] However, when I try to import the arules module, I get the ModuleNotFoundError: &...
Ramya Ramesh's user avatar
0 votes
0 answers
31 views

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 ...
Sinha's user avatar
  • 426
-1 votes
0 answers
58 views

Getting requirements to build wheel … error for Pycaret

I am trying to install pip install Pycaret while building a prediction model, while executing the command to install in on my mac os. I do have my numpy installed, with version of: 1.23.5 Please Help… ...
user10206730's user avatar
0 votes
0 answers
28 views

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....
Carl C's user avatar
  • 135
0 votes
0 answers
34 views

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 ...
Marwan Ashraf's user avatar
1 vote
0 answers
48 views

Error in PyCaret AutoML Web App: Unexpected 'setup()' Argument 'silent' - How Can I Fix This?

I'm working on an AutoML web application using PyCaret, Streamlit, and pandas_profiling. My app allows users to upload a dataset, perform exploratory data analysis (EDA) with pandas_profiling, and ...
Vikas Sharma's user avatar
0 votes
0 answers
33 views

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....
Murat Sivil's user avatar
0 votes
0 answers
19 views

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's user avatar
  • 23
0 votes
0 answers
52 views

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 ...
Bappa's user avatar
  • 71
0 votes
0 answers
24 views

PLS as custom model in pycaret

As PyCaret allows incorporating custom models Link I would appreciate any help in enabling PLS (partial least squares), so it can be used along with other models available in PyCaret (for comparisons, ...
Inept Adept's user avatar
0 votes
0 answers
19 views

Need help installing pycaret on MacOS in jupyterhub

I can pip install pycaret fine, but when I run setup() i get thrown an error that indicates lightgbm was not installed correctly: setup(data=mmm[features + [target]],target=target, session_id=2) ...
friendlypigeon's user avatar
0 votes
0 answers
95 views

Make multi output Regression in pycaret

I have 210 * 8k DataFrame and 200 of them is input columns and 10 of them is output columns. (some textbook use the word "X column" and "y column", according that I have 200 X ...
vitamin Cho's user avatar
0 votes
0 answers
31 views

segmentation fault when I use Pycaret

When I try to use Pycaret on my MacOS, it stops and gives me this error: 10136 segmentation fault python main.py /usr/local/anaconda3/envs/torch2/lib/python3.9/multiprocessing/resource_tracker.py:...
Mahdi Amrollahi's user avatar
0 votes
0 answers
60 views

Using Pycaret for Random Forest Classifcation (Employee churn) in Power BI

I'm trying to integrate my machine learning model (Random Forest) I did in Jupyter Notebook inside power BI. Using gridsearch , and after testing multiple algorithms, it turned out that the Random ...
userrr's user avatar
  • 197
0 votes
0 answers
75 views

Module Not Found Error: No module named 'pycaret.nlp'

I'm trying to use the LDA topic modeling algorithm inside Power BI. My python environement has the version Python 3.8.17 I'm trying to run a Python script inside Power BI from pycaret.nlp import * ...
userrr's user avatar
  • 197
0 votes
0 answers
31 views

error while installing pycaret in the my venv

I am trying to install pycaret library but gives me an error. I have tried to update pip but nothing changed File "C:\Users\user\AppData\Local\Temp\pip-install-vyg39mmt\...
westwashin westwashin's user avatar
0 votes
1 answer
238 views

ModuleNotFoundError: No module named 'pycaret.nlp'

I'm trying to use pycaret with nlp from this page. Unfortunately, I'm not able to install it. I tried using pip install pycaret like described here. It is also mentioned in my pip list: pip list ...
Quinten's user avatar
  • 35.5k
0 votes
0 answers
61 views

Converting a pycaret pipeline to lightgbm.sklearn.LGBMClassifier

I've defined and trained a lgbm model using pycaret. When I fetch the model using model = mlflow.sklearn.load_model(model_name) the resulting model is of type pycaret.internal.pipeline.Pipeline. This ...
Carlo's user avatar
  • 395
0 votes
0 answers
8 views

I am running my code in Google colab, it is showing this error. I had joined X_train and "y" column of y_train. I am unable to do the set up

enter image description here I am unable to do the setup in Pycaret.I had installed Pycaret library. It is showing error on class. I had joined two dataframe . The target variable is y column. It ...
Sitaram Doddapaneni's user avatar
0 votes
0 answers
16 views

While using the group _features function of pycaret, how to extract only one stastical information instead of all the the 6 (i want only mean)

s = setup(data, group _features=['','','',......], drop_features =True, group_name = ['','','',....]) The output file has all the six stastical information which I don't require in my ml model. Output ...
Sachin Yadav's user avatar
0 votes
0 answers
66 views

Pycaret - log all model tuning results in ML Flow

Is it possible to log all model tuning results, including all evaluated hyperparameter combinations, into MLflow in Pycaret? Currently, using log_experiment only logs the tuned model itself. ...
Jan's user avatar
  • 43
0 votes
0 answers
18 views

Does the Pycaret library offer any built-in functionality or options that allow users to include L1 or L2 regularizers?

I have two questions: If we have a binary classifier can we connect it to Pycaret? I wonder whether Pycaret includes an option to incorporate L1 or L2 regularizers, or any other regularizers, when ...
Hemfri's user avatar
  • 315
0 votes
1 answer
230 views

Pycaret Exception ignored on calling ctypes callback function

I have setup pycaret 3.0.2 in python 3.10 and I am running it as a .py file. I get this error Exception ignored on calling ctypes callback function: <function _ThreadpoolInfo....
cosm1c v1bes's user avatar
0 votes
0 answers
28 views

Pycaret how avoid/solve randon crash on setup?

I try to use Pycaret to find the best model for my problems. I have 10 variable to predict, so I do a loop (for) to setup and find best model for all each variable. best_model = [] for predict in Y: ...
tferrari's user avatar
0 votes
1 answer
529 views

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(...
Raha Moosavi's user avatar
-1 votes
1 answer
45 views

Pycaret 3.0, predict_model not showing anything

Pycaret 3.0 "predict_model" is not working. python = 3.11 pycaret = 3.0 loadmodel is worked but loadmodel is not. Tried with printing the loaded model and it worked. But when I tried ...
PieNa's user avatar
  • 1
0 votes
2 answers
142 views

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/...
Juan Fontecha's user avatar
1 vote
1 answer
263 views

pycaret export train and test before and after transformation

I am trying to build a ML model using pycaret. I used the below setup function clf = setup(data = df.loc[:, df.columns != 'ID'], target='final_label',session_id=123, categorical_features=[...
The Great's user avatar
  • 7,217
0 votes
1 answer
98 views

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: ...
user2895779's user avatar
0 votes
0 answers
142 views

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 ...
user2895779's user avatar
0 votes
1 answer
116 views

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 https://pycaret....
user3447443's user avatar
0 votes
1 answer
69 views

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 ...
AldegarRızvan's user avatar
0 votes
1 answer
257 views

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 ...
Cameron Levine's user avatar
0 votes
1 answer
73 views

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 ...
Hamzah's user avatar
  • 8,295
0 votes
0 answers
134 views

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 ...
user3634141's user avatar
0 votes
1 answer
590 views

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() ...
user3634141's user avatar
0 votes
1 answer
102 views

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 ...
Sam.H's user avatar
  • 193
0 votes
1 answer
193 views

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 ...
ufukyılmaz's user avatar
0 votes
1 answer
120 views

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 ...
Sam.H's user avatar
  • 193
0 votes
0 answers
30 views

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' ...
Aashish's user avatar
1 vote
0 answers
31 views

Facing issue while installing pycaret in airflow DAG?

We are facing issues while installing pycaret library in airflow dag using Bootstrap file. sudo python3 -m pip install pycaret==2.3.8 Error: Collecting pyod Downloading pyod-1.0.8.tar.gz (149 kB) ...
Yoshitha Penaganti's user avatar
0 votes
0 answers
35 views

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 ...
Iman B's user avatar
  • 1
0 votes
0 answers
21 views

getting error when using pycaret 2.2.2 version

Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None), or set shuffle=True. getting this error while using pycaret 2.2.2 version any ...
Chandana29's user avatar
0 votes
1 answer
73 views

ModuleNotFoundError: No module named 'pycaret' using Streamlit

I am getting this error while running it locally. I have created environment using conda.Python=3.8 and Pycaret =2.3.5 Please help me to resolve it. I created new enviornment to run it and it still ...
Astha_H's user avatar
0 votes
0 answers
73 views

Pycaret data_func usage

What is the proper setup to use data_func? I have attempted to use list comprehension which is not allowed as lists are not callable. I have attempted to use pandas as a generator but generator ...
Tony Shouse's user avatar
0 votes
0 answers
208 views

Trying to install pycaret on anaconda

I am trying to install pycaret on anaconda but I keep getting this error. note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure ×...
GAH's user avatar
  • 1

1
2 3 4 5