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

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, tuning, blending, predictions). PLS is a part of…
0
votes
0 answers

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) ImportError: cannot import name 'is_dtype_sparse'…
0
votes
0 answers

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 columns and 10 y columns) All output columns are continous…
0
votes
0 answers

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:216: UserWarning: resource_tracker: There appear to…
Mahdi Amrollahi
  • 2,930
  • 5
  • 27
  • 37
0
votes
0 answers

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 Forest was the most performant one for my…
userrr
  • 197
  • 7
0
votes
0 answers

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 * dataset = get_topics(dataset, text='cons',…
userrr
  • 197
  • 7
0
votes
0 answers

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\numpy_8355b93d670144e28fe1a995214ef875\numpy\distutils\ccompiler.py",…
0
votes
1 answer

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 Package …
Quinten
  • 35,235
  • 5
  • 20
  • 53
0
votes
0 answers

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 model type is not supported by…
Carlo
  • 395
  • 1
  • 8
  • 22
0
votes
0 answers

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 showing an error on class.
0
votes
0 answers

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 should only show mean of the groups instead of…
0
votes
0 answers

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. Alternatively, is there another convenient method to…
Jan
  • 43
  • 7
0
votes
0 answers

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 training binary classifiers?
Hemfri
  • 313
  • 1
  • 8
0
votes
1 answer

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:
0
votes
0 answers

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: tmp_df = df[X].copy() test_df =…
Tony
  • 33
  • 4