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

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 suggestions please tried by making shuffle= True and…
0
votes
1 answer

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 didn't work.
Astha_H
  • 1
  • 1
0
votes
0 answers

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 objects are not picklable. What the set up to use the…
Tony Shouse
  • 106
  • 5
0
votes
0 answers

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 × Encountered error while trying to install…
GAH
  • 1
  • 1
0
votes
1 answer

MLflow not tracking anything with pycaret

I have the mlflow ui (v.2.1.1.) running. This code with pycaret 2.3.10 does not track anything for some reason. Only the experiment name shows up. import pycaret import mlflow mlflow.set_tracking_uri("http://localhost:5000") # import…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
0
votes
1 answer

UnicodeEncodeError: 'charmap' codec can't encode character '\u25c4' in position 276445: character maps to

In this project, I am trying to utilize the pycaret package to analyze some time series with the help of scikit-learn package. Specifically, I have imported some modules as follows: from pycaret.regression import (setup, compare_models,…
Rebel
  • 472
  • 8
  • 25
0
votes
1 answer

using predict_model: NameError: name 'prep_pipe' is not defined"

I am trying to load a saved model and then using predict_model function in order to score the data but getting the below error NameError: name 'prep_pipe' is not defined" The version of pycaret==2.3.10
0
votes
0 answers

predict_model() giving error while using 'sod' (Subspace Outlier Detection) model in pycaret.anomaly

Getting error while predicting for the test data: CODE: from pycaret.anomaly import * anom_exp = setup(train,session_id = 125, categorical_features=['date', 'hours', 'weekNumber', 'DayName',…
joshita
  • 1
  • 1
0
votes
1 answer

Pycaret Classification setup fails because 'OneHotEncoder' object has no attribute 'get_feature_names'

I'm trying to run this using PyCaret: exp = setup(data = df, target = 'CureFlag',fold_shuffle=True, session_id=2) but I get the error that 'OneHotEncoder' object has no attribute 'get_feature_names'. Can anyone please help with this?
Kk22
  • 1
0
votes
1 answer

Is there a way to get a list of all my categorical and numerical features in Pycaret?

I am using Pycaret for a classification problem and I want to get a list of all the categorical and numerical variables inferred by setup() for EDA. Is there a way to do this? I have tried looking at any function in the documentation but couldn't…
0
votes
1 answer

Pip install pycaret-pip subprocess to install build dependencies did not run successfully

I am using Anaconda and trying to install pycaret but it's always stuck on Installing Build dependencies after which this error comes out. subprocess-exited-with-error Collecting scikit-learn==0.23.2 Using cached scikit-learn-0.23.2.tar.gz (7.2…
Jacob
  • 1
  • 1
0
votes
0 answers

In pycaret how can you create an AUC plot displaying the same AUC value as a specific cross-validation trial from create_model()?

How can I use the AUC in a plot_model([model], plot = 'auc') function that matches up to a certain cross-validation trial for a pycaret model (specifically rf)? The plot automatically shows AUC = 0.77 but the mean AUC is 0.83 so I would want to use…
ga-so
  • 1
  • 2
0
votes
0 answers

PyCaret: Multiclass Classification - Problem with Function: compare_models()

I would like to classify my dataset with PyCaret. I have already read up on Pycaret, but I don't understand why I get an empty list when I create the models with the compare_models() function. Since I am still quite new to the topic, I might have…
0
votes
1 answer

Pycaret Model Predict

I don't have too much experience with pycaret but I'm figuring things out slowly but surely. I'm trying to figure out how to have a model predict a value, not in the data I give it but rather outside the data. For example, I have data that is…
0
votes
0 answers

Why can't I reproduce the results obtained with pycaret?

If I use the dataset transformed by pycaret and the best trained model why don't I get the same results I get with pycaret? I am trying to learn how to build regression models with datasets downloaded from the internet (boston dataset, iris, etc.)…
vorsamaqoy
  • 103
  • 2