PyCaret

一个开源的、低代码的 Python 机器学习库。「An open source, low-code machine learning library in Python」

Github stars Tracking Chart

An open-source, low-code machine learning library in Python
:rocket: PyCaret 3.0-rc is now out. pip install --pre pycaret

Python
pytest on push
Documentation Status
PyPI version
License

Slack

alt text

Welcome to 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 lines 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 few 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 technical expertise.

Important Links
:star: Tutorials New to PyCaret? Checkout our official notebooks!
:clipboard: Example Notebooks Example notebooks created by community.
:orange_book: Official Blog Tutorials and articles by contributors.
:books: Documentation The detailed API docs of PyCaret
:tv: Video Tutorials Our video tutorial from various events.
✈️ Cheat sheet Cheat sheet for all functions across modules.
:loudspeaker: Discussions Have questions? Engage with community and contributors.
:hammer_and_wrench: Changelog Changes and version history.
:deciduous_tree: Roadmap PyCaret's software and community development plan.

Installation

PyCaret's default installation only installs hard dependencies as listed in the requirements.txt file.

pip install pycaret

To install the full version:

pip install pycaret[full]

Supervised Workflow

Classification Regression

Unsupervised Workflow

Clustering Anomaly Detection

⚡ PyCaret Time Series Module (beta)

PyCaret new time series module is now available in beta. Staying true to simplicity of PyCaret, it is consistent with our existing API and fully loaded with functionalities. Statistical testing, model training and selection (30+ algorithms), model analysis, automated hyperparameter tuning, experiment logging, deployment on cloud, and more. All of this with only few lines of code (just like the other modules of pycaret). If you would like to give it a try, checkout our official quick start notebook.

:books: Time Series Docs

:question: Time Series FAQs

:rocket: Features and Roadmap

The module is still in beta. We are adding new functionalities every day and doing weekly pip releases. Please ensure to create a separate python environment to avoid dependency conflicts with main pycaret. The final release of this module will be merged with the main pycaret in next major release.

pip install pycaret-ts-alpha

alt text

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 Professionals who want to build rapid prototypes.
  • Data Science and Machine Learning students and enthusiasts.

PyCaret GPU support

With PyCaret >= 2.2, you can train models on GPU and speed up your workflow by 10x. To train models on GPU simply pass use_gpu = True in the setup function. 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 version or the full version. As of the latest release, the following models can be trained on GPU:

  • Extreme Gradient Boosting (requires no further installation)
  • CatBoost (requires no further installation)
  • Light Gradient Boosting Machine requires GPU installation
  • 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

License

PyCaret is completely free and open-source and licensed under the MIT license.

Contributors

Overview

Name With Ownerpycaret/pycaret
Primary LanguageJupyter Notebook
Program languagePython (Language Count: 3)
PlatformLinux, Mac, Windows
License:MIT License
Release Count37
Last Release Name3.3.1 (Posted on )
First Release Name2.0 (Posted on )
Created At2019-11-23 18:40:48
Pushed At2024-04-18 16:14:47
Last Commit At2024-04-14 22:16:10
Stargazers Count8.4k
Watchers Count131
Fork Count1.7k
Commits Count5.2k
Has Issues Enabled
Issues Count2277
Issue Open Count347
Pull Requests Count829
Pull Requests Open Count5
Pull Requests Close Count156
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top