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

UnboundLocalError: local variable 'fix_imbalance_model_name' referenced before assignment

Getting this error while initializing fix_imbalance=True,fix_imbalance_method=smote Pycaret Classification Setup. 1735 else [] 1736 ) -> 1737 + ( 1738 [ 1739 ["Transform Target",…
Scope
  • 727
  • 4
  • 15
0
votes
1 answer

how to get X_train,X_test,y_train, y_test from Pycaret?

can we get the X_train, y_train,X_test,y_test from a tuned model in pycaret? I want the splits so that I can plot a few graphs which are not supported by plot_model in pycaret
Scope
  • 727
  • 4
  • 15
0
votes
1 answer

What is this paramater in Pycaret setup?

What are the values encoding_method can take for categorical encoding in setup, leaving the default leave one out method. I do not see the non default values it can take in the documentation
Scope
  • 727
  • 4
  • 15
0
votes
1 answer

Pycaret time series cv and binary classification

is it possible to first use cross validation with ExpandingWindowSplitter on a time series dataset and then fit the folds on classification binary models?
Christian
  • 401
  • 1
  • 5
  • 14
0
votes
2 answers

Get parameter estimates from logistic regression model using pycaret

I am training and tuning a model in pycaret such as: from pycaret.classification import * clf1 = setup(data = train, target = 'target', feature_selection = True, test_data = test, remove_multicollinearity = True, multicollinearity_threshold =…
Gustavomoty
  • 87
  • 1
  • 5
0
votes
1 answer

Custom cross-validation and pycaret

I've been working with hierarchical time series, and, as a result, I needed to create my own CV to make sure that all timestamps and products are included evenly in the test (validation) set. It worked just fine for sklearn, but I can't make it work…
User
  • 5
  • 1
  • 2
0
votes
2 answers

sklearn2pmml error with pycaret model to pmml : The object is not an instance of BaseEstimator

creating a model using pycaret with no issue so far (trained a bunch of different models) but when using catboost, I cannot save to pmml. This very same code worked for xgboost and lightgbm with the same data. from sklearn2pmml.pipeline import…
Forge
  • 1,587
  • 1
  • 15
  • 36
0
votes
1 answer

PyCaret on Google Colab: "Estimator xgboost not available"

I have installed pycaret and xgboost as follows: !pip install pycaret==2.3.10 markupsafe==2.0.1 pyyaml==5.4.1 --use-deprecated=legacy-resolver -qq !pip install xgboost But when I try to create the following Xgboost model, it throws an error…
0
votes
1 answer

Pycaret plot_model not properly

I got this error code when i try to use plot_model() ---> 16 from scipy.fftpack.helper import _init_nd_shape_and_axes_sorted 17 from numpy import (allclose, angle, arange, argsort, array, asarray, 18 atleast_1d,…
0
votes
2 answers

test/train splits in pycaret using a column for grouping rows that should be in the same split

My dataset contains a column with some data I need to use for splitting by groups in a way that rows belonging to same group should not be divided into train/test but sent as a whole to one of the splits using PYCARET 10 row sample for…
Forge
  • 1,587
  • 1
  • 15
  • 36
0
votes
2 answers

How to print the prediction interval (upper and lower bound) in pycaret-ts-alpha

I want to know how to determine the prediction interval (upper and lower bound) in pycaret-ts-alpha. I am only trying to forecast one point value, but I need to determine it's upper and lower bound. Thanks!
0
votes
1 answer

Should tune_model be Called After compare_models in PyCaret?

With pycaret, it is possible to call the compare_models() function and get the model that best fits our data. This will look something like this, # load dataset from pycaret.datasets import get_data diabetes = get_data('diabetes') # init setup from…
Minura Punchihewa
  • 1,498
  • 1
  • 12
  • 35
0
votes
2 answers

When I use Pycaret predict_model(dt,data=data_unseen) to analyze only one row appears

I use Python pycaret module to analyze big set of data. I did setup, compare_model, create_model correctly, but when I try to use model I created to predict the unseen_date I splite from beginning, there is only one row come, there is supposee 100k…
0
votes
1 answer

How to skip pycaret data type validation step in docker

While we create a pycaret setup, e.g.: from pycaret.regression import all exp_reg101 = setup(data = data, target = 'Price', session_id=123,preprocess=False) It will ask us to verify the data types like this; i.e: Following data types have been…
0
votes
0 answers

bad practice importing pycaret from official docs

Read all documentation from pycaret and many tutorials and examples. https://pycaret.gitbook.io/docs/get-started/tutorials All of them started this way: #For Regression from pycaret.regression import * #For Classification from…
Forge
  • 1,587
  • 1
  • 15
  • 36