How to save a pycaret plot?

I'm trying to save a pycaret plot but only get a blank file: plt.figure(figsize = (18,9)) plot_model(pycaret_xgboost, 'auc') plt.savefig('ROC_xboost.svg')

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,...

Side by side plots in pycaret

I am doing regression analysis in pycaret, and plotted residuals and errors. # create a model bgr = create_model('gbr') # residuals plot plot_model(gbr, plot = 'residuals') # errors...

OSerror:dlopen Reason: image not found

I'm trying to run the python file and I get this error, I tried looking up but I couldn't find a solution to it. OSError:...

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...

How I can solve the ERROR: Command errored out with exit status 1?

I'm trying to install the package "Pycaret" and work with a Windows on the AWS environment. While I have been able to successfully install other libraries I get an error when I try to install...

`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...

Build API using FastAPI for Classification Model produced using pycaret

I'm using pycaret as my ML workflow, I tried to create an API using FastAPI. This is my first time playing into production level, so I'm bit confused about API I have 10 features; age: float,...

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...

PyCaret predict_model() method fails with Pipeline not Found error

I have trained my pycaret model locally and then later on I pushed it to S3. Now I want to run a predict_model() method on my bigger production datasets. Using boto3 I copy my model pickle file...

Module Not found when importing PyCaret in Jupyter

I'm trying to learn PyCaret but having a problem when trying to import it in Jupyter Lab. I'm working in a virtualenv and installed pycaret via pip: pip install pycaret I can confirm its...

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,...

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...

AttributeError: 'SimpleImputer' object has no attribute '_validate_data' in PyCaret

I am using PyCaret and get an error. AttributeError: 'SimpleImputer' object has no attribute '_validate_data' Trying to create a basic instance. # Create a basic PyCaret instance import...

Early stopping with Pycaret? Overfitting with Catboost and XGBoost

I'm comparing the performance of Catboost, XGBoost and LinearRegression in Pycaret. Catboost and XGBoost are untuned. So far I see that Catboost and XGBoost are overfitting. For linear regression...

Converting JSON into a DataFrame within FastAPI app

I am trying to create an API for customer churn at a bank. I have completed the model and now want to create the API using FastAPI. My problem is converting the JSON passed data to a dataframe to...

ModuleNotFoundError: No module named 'pycaret.internal'

I am trying to deploy a ML model using Streamlit and Pycaret on Heroku. When I try deploying the app, I get the following error: ModuleNotFoundError: No module named...

PyCaret ValueError - Cell is Empty

I encountered an issue using PyCaret where a ValueError: Cell is empty is shown when I tried to create my model. Here is my code: !pip install pycaret from pycaret.utils import enable_colab...

"Estimator xgboost not available" for PyCaret in google colab?

Title. For some reason, xgboost isn't showing up as an option for models I can use in pycaret's regression module. I've installed it as needed link to colab

Pycaret.regression.compare_models: Evaluation table neither returned nor shown

pycaret is a very compact tool to compare models that I wanted to use for model selection. Unfortunately, the method compare_models does not show the typical output table that you see everywhere....

PyCaret methods on GPU/TPU

When I ran best_model = compare_models() there is a huge load on CPU memory, while my GPU is unutilized. How do I run the setup() or compare_models() on GPU? Is there an in-built method in PyCaret?

AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical'' in PyCaret

I am using PyCaret and get an error. AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical' Trying to create a basic instance. !pip install pycaret==1.0 from...

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

When i try to train some thing in pycreat i recive this error message ValueError: Setting a random_state has no effect since shuffle is False. You should leave random_state to its default (None),...

How to fix "ImportError: cannot import name '_raise_dep_warning_if_not_pytest' from 'sklearn.utils.deprecation'"?

I am trying to use Pycaret to do classification for an imbalanced dataset I installed Pycaret 2.3.1 and have sklearn 0.23.2 When I use the code from pycaret.classification import * I get the...

pycaret compare_models() call doesn't recognize sort

After creating the clr_default: clr_default = setup(df_rain_definitivo_one_drop_catboost_norm_fs_dropna,fold_shuffle=True, target='RainTomorrow', session_id=123) I've tried to use the...

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in...

No module named 'pycaret

I am getting this error in my VSCODE: No module named 'pycaret my query is this: from pycaret.classification import * I have installed pycaret, may I know how can I solve this error?

Pycaret - 'Make_Time_Features' object has no attribute 'list_of_features'

I am trying to create a model using pycaret just as: from pycaret.classification import * clf1 = setup(data = dt, target = 'group') lr = create_model('lr') Then I get: AttributeError:...