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 and Google Cloud Function

I try to use PyCaret in a Google Cloud Function but I cannot import the classification modules (from pycaret.classification import *) because there is a reference to a non writable directory (OSError: [Errno 30] Read-only file system:…
vmady
  • 1
  • 1
0
votes
1 answer

ImportError: cannot import name 'doc' from 'pandas.util._decorators' (C:\ProgramData\Anaconda3\lib\site-packages\pandas\util\_decorators.py)

I am trying to import pycaret but this error holds me back. How do I solve this? ImportError
autopilot38
  • 291
  • 1
  • 5
  • 9
0
votes
3 answers

Is there a way to return hyperparameters tuned by Pycaret?

Pycaret automatically searches the best parameters. For example, the codes below will allocate 5 automatically tuned models to 'tuned_top5'. from pycaret.classification import * setup(data=train, train_size=.9, target='my_target_feature') tuned_top5…
J Kim
  • 1
  • 1
  • 2
0
votes
1 answer

Trying to load model.pickle to API but raise ```AttributeError: 'Data' object has no attribute 'columns'```

I have build a classification model using pycaret and already produced the pickle file. Then, I tried to build an API and load the pickle file using fastapi. import logging import pickle from pydantic import BaseModel import numpy as np from…
ebuzz168
  • 1,134
  • 2
  • 17
  • 39
0
votes
1 answer

`ValueError: The least populated class in y has only 1 member, which is too few` in PyCaret

I have a problem, working with PyCaret. Previously I did not have any problems. But it started when I oversampled data and saved it, using pandas and this question. The file is here. Then I read the file in a separate notebook. import pycaret from…
Anakin Skywalker
  • 2,400
  • 5
  • 35
  • 63
0
votes
1 answer

Need assistance on objects in PyCaret

I am learning PyCaret. It is a fantastic program. I have the following questions: 1)After running lr = create_model('lr', fold = 5), I get a nice table with accuracy etc. >>>print(type(lr)) How can I…
Rex Smith
  • 11
  • 2
0
votes
0 answers

Package dependencies error during conda-build upload

I'm trying to upload pycaret package into anaconda, making it possible to install with conda install pycaret. This is issue 21 and I'm working on it. So, I followed those steps at Building conda packages with conda skeleton and create the meta.yaml…
Henrique Branco
  • 1,778
  • 1
  • 13
  • 40
0
votes
1 answer

PyCaret NLP assign_model(lda) assigns topics on empty rows

I'm using pycaret to create_model(lda) and then using that for assign_model(lda). Not sure if I'm doing something that I'm not supposed to do during pre-processing. Any help is much appreciated #create model lda = create_model('lda') …
Mr Rj
  • 41
  • 1
  • 10
0
votes
1 answer

pycaret giving error:PermissionError: [WinError 32] The process cannot access the file because it is being used by another process

I am using anaconda environment , on windows with pycaret installed,and pycharm. i want to run a basic toy example with pycaret (not using freely available datasets), as a simple y=mx+c, where x is 1-d here is my working code with scikit. import…
user915783
  • 689
  • 1
  • 9
  • 27
0
votes
1 answer

How to install pycaret python library in mac Mojave

I want to install pycaret library in Mac Mojave 10.14. However when I try to do pip3 install pycaret I get below error - XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root…
Regressor
  • 1,843
  • 4
  • 27
  • 67
-1
votes
0 answers

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… Thank you very much!:) I tried to update Numpy…
-1
votes
0 answers

Getting df_compare model output empty

StreamlitAPIException: ("Could not convert 'PassengerId' with type str: tried to convert to int64", 'Conversion failed for column Value with type object') solved this err using…
-1
votes
1 answer

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 printing prediction, nothing appeared. There is no any error…
PieNa
  • 1
  • 1
-1
votes
1 answer

PyCaret cannot import name '_check_param_grid' from 'sklearn.model_selection._search'

Hi I have been trying to fix this error that keeps coming up. I have tried everything online like reinstalling sklearn to the proper version documented on the GitHub repo and website. there were many more cannot recall but if anyone has any…
Saulti23
  • 23
  • 3
-1
votes
1 answer

Numeric feature in setup function

I want to pass all my features(100+) as a numeric feature is there any method to do it without writing all features in the setup column?
1 2 3
15
16