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

How to determine number of neighbors in knn in pycaret

My question lies specifically in knn method in Anomaly Detection module of pycaret library. Usually number of k neighbors has to be specified. Like for example in PyOD library. How to learn what number of neighbors knn uses in pycaret library? Or…
Weilire
  • 37
  • 6
2
votes
2 answers

TypeError: unsupported operand type(s) for -: ‘str’ and ‘int’ in PyCaret regression

I read multiple available questions about this topic, but still do not understand my problem. I am trying to build a regression, using PyCaret: from pycaret.regression import * fooPy = setup(data = foo, target = 'pts', session_id = 123) I receive…
Anakin Skywalker
  • 2,400
  • 5
  • 35
  • 63
1
vote
0 answers

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 build classification models using PyCaret. However,…
1
vote
1 answer

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=['Gender','Country'], …
The Great
  • 7,215
  • 7
  • 40
  • 128
1
vote
0 answers

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) 150.0/150.0 kB 9.9 MB/s eta 0:00:00 …
1
vote
2 answers

Problem installing Pycaret in Google Colab

I am trying to install pycaret in Google Colab and I am getting this error: error: **subprocess-exited-with-error** × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from…
Pratim Das
  • 19
  • 2
1
vote
1 answer

time series stock data having gaps in dataframe to be modeled in Pycaret

I have a a csv file which I have imported as follows: ps0pyc=pd.read_csv(r'/Users/swapnilgupta/Desktop/fend/p0.csv') ps0pyc['Date'] = pd.to_datetime(ps0pyc['Date'], dayfirst= True) ps0pyc Date PORTVAL 0 2013-01-03 17.133585 1 2013-01-04…
1
vote
2 answers

Error while installing PyCaret: No module named 'numpy.distutils._msvccompiler' in numpy.distutils in windows

I am getting a huge error while installing pycaret module in my system. Can anyone help me with this please. I am using python 3.10.8 Also, please suggest the best way to keep things clean version-wise. PyCaret always troubles me whenever I work on…
Subrat Saxena
  • 68
  • 1
  • 9
1
vote
3 answers

Cannot import pycaret in google colab

I cant import pycaret in a google colab Here are all the steps I had taken: Change python version to 3.8 Installed pip I then ran !pip install pycaret import pycaret the install works, but then ModuleNotFoundError Traceback…
Phixed
  • 13
  • 5
1
vote
0 answers

ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None)

Whilst working on an anomaly detection problem on PyCaret, I ran into this issue. I couldn't find that many resources online, unfortunately: from pycaret.datasets import get_data dataset = get_data("mice") data_train = dataset.sample(frac=0.95,…
1
vote
1 answer

Error when trying to install Lazypredict, problem with lightgbm

I'm trying to install Lazypredict, an autoML python library, on macOS 10.14.6. Thus, I simply run "pip install lazypredict" in the terminal , it wants to install lightgbm, but always fails to do so. I think it tries to install lightgbm through pip…
Blue blues
  • 11
  • 1
1
vote
2 answers

Installation always stuck on PyCaret 2.2.2 + Package problems

I'm stuck on an issue that I can't seem to solve. I was fine using PyCaret on my other PC and had recently got a new desktop. I was working on one dataset on my old PC and had no problems with setup() and PyCaret preprocessed my data without any…
aoryx
  • 11
  • 2
1
vote
1 answer

ModuleNotFoundError: No module named 'pycaret.time_series'

I've seen similar questions, but no solutions for this problem. I'm using Google Colab: !pip install pycaret And this: import time import numpy as np import pandas as pd from pycaret.datasets import get_data #from pycaret.time_series import…
unstuck
  • 563
  • 2
  • 12
  • 29
1
vote
1 answer

Getting Import Error: cannot import name 'Iterable' from 'collections' in pycaret

I am using 3.10 version of python and while running pycaret.classification i am getting below error. 1 #init setup ----> 3 from pycaret.classification import * 4 s = setup(data, target ='Resolver',session_id=123) 6 #train…
1
vote
1 answer

Using SKORCH with PyCaret for Regression problems

Using the fantastic article https://towardsdatascience.com/pycaret-skorch-build-pytorch-neural-networks-using-minimal-code-57079e197f33 there is a great example of using SKORCH and PyCaret to do Classification problems, but I am having trouble…
user1910714
  • 109
  • 8
1 2
3
15 16