Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

alt text

PyCaret 2.3

Python pytest on push Documentation Status PyPI version License

Slack

What is PyCaret?

PyCaret is an open-source, low-code machine learning library in Python that automates machine learning workflows. It is an end-to-end machine learning and model management tool that speeds up the experiment cycle exponentially and makes you more productive.

In comparison with the other open-source machine learning libraries, PyCaret is an alternate low-code library that can be used to replace hundreds of lines of code with few words only. This makes experiments exponentially fast and efficient. PyCaret is essentially a Python wrapper around several machine learning libraries and frameworks such as scikit-learn, XGBoost, LightGBM, CatBoost, spaCy, Optuna, Hyperopt, Ray, and many more.

The design and simplicity of PyCaret are inspired by the emerging role of citizen data scientists, a term first used by Gartner. Citizen Data Scientists are power users who can perform both simple and moderately sophisticated analytical tasks that would previously have required more expertise. Seasoned data scientists are often difficult to find and expensive to hire but citizen data scientists can be an effective way to mitigate this gap and address data-related challenges in the business setting.

PyCaret is a great library which not only simplifies the machine learning tasks for citizen data scientists but also helps new startups to reduce the cost of investing in a team of data scientists. Therefore, this library has not only helped the citizen data scientists but has also helped individuals who want to start exploring the field of data science, having no prior knowledge in this field. The Initial idea of PyCaret was inspired by Caret library in R.

alt text

Current Release

PyCaret 2.3.4 is now available. See 2.3.4 release notes. The easiest way to install pycaret is using pip.

pip install pycaret

PyCaret's default installation is a slim version of pycaret which only installs hard dependencies that are listed in requirements.txt. To install the full version of pycaret, use the following command:

pip install pycaret[full]

PyCaret on GPU

PyCaret >= 2.2 provides the option to use GPU for select model training and hyperparameter tuning. There is no change in the use of the API, however, in some cases, additional libraries have to be installed as they are not installed with the default slim version or the full version. The following estimators can be trained on GPU.

  • Extreme Gradient Boosting (requires no further installation)

  • CatBoost (requires no further installation)

  • Light Gradient Boosting Machine (requires GPU installation: https://lightgbm.readthedocs.io/en/latest/GPU-Tutorial.html)

  • Logistic Regression, Ridge Classifier, Random Forest, K Neighbors Classifier, K Neighbors Regressor, Support Vector Machine, Linear Regression, Ridge Regression, Lasso Regression (requires cuML >= 0.15 https://github.com/rapidsai/cuml)

If you are using Google Colab you can install Light Gradient Boosting Machine for GPU but first you have to uninstall LightGBM on CPU. Use the below command to do that:

pip uninstall lightgbm -y

# install lightgbm GPU
pip install lightgbm --install-option=--gpu --install-option="--opencl-include-dir=/usr/local/cuda/include/" --install-option="--opencl-library=/usr/local/cuda/lib64/libOpenCL.so"

CatBoost is only enabled on GPU when dataset has > 50,000 rows.

cuML >= 0.15 cannot be installed on Google Colab. Instead use blazingSQL (https://blazingsql.com/) which comes pre-installed with cuML 0.15. Use following command to install pycaret:

# install pycaret on blazingSQL
!/opt/conda-environments/rapids-stable/bin/python -m pip install --upgrade pycaret

Important Links

Who should use PyCaret?

PyCaret is an open source library that anybody can use. In our view the ideal target audience of PyCaret is:

  • Experienced Data Scientists who want to increase productivity.
  • Citizen Data Scientists who prefer a low code machine learning solution.
  • Data Science Students.
  • Data Science Professionals who want to build rapid prototypes.

Contributors

Made with contributors-img.

Release files for pycaret-ts-alpha 3.0.0.dev1635609350

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycaret-ts-alpha 3.0.0.dev1635609350
File Size Uploaded
pycaret-ts-alpha-3.0.0.dev1635609350.tar.gz 421.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycaret-ts-alpha 3.0.0.dev1635609350
File Interpreter ABI Platform
pycaret_ts_alpha-3.0.0.dev1635609350-py3-none-any.whl Python 3 none any Details

Total release size: 897.3 kB

Release files / pycaret-ts-alpha-3.0.0.dev1635609350.tar.gz

Download URL pycaret-ts-alpha-3.0.0.dev1635609350.tar.gz
Size 421.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5cd1d26ddad4179eaa90019705f85d000229c7b45c730677f1d0dcaabd395a14
BLAKE2b-256 checksum
How to use checksums
551359404742723847a99b8f7a89a480b6f63c857c17e3487030d5d6633635b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / pycaret_ts_alpha-3.0.0.dev1635609350-py3-none-any.whl

Download URL pycaret_ts_alpha-3.0.0.dev1635609350-py3-none-any.whl
Size 476.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af79159a3ba0c5f0204b05623a8ccc9244bce8ba85e6666156d419bf8973b3fc
BLAKE2b-256 checksum
How to use checksums
68bcb18e524587212213b91d2ad92774fc1966e7e417f18f7150edd6cd337c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page