Pk13055 / rt_bin_class_base_pycaret

Binary Classifier using PyCaret for Binary Classification - Base problem category as per Ready Tensor specifications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binary Classifier in PyCaret for Binary Classification - Base problem category as per Ready Tensor specifications.

  • pycaret
  • sklearn
  • python
  • pandas
  • numpy
  • scikit-optimize
  • FastAPI
  • nginx
  • uvicorn
  • docker
  • binary classification

This is an AutoML Binary Classifier that uses pycaret to automatically select the best model(s) for the given dataset(s)

The data preprocessing step includes missing data imputation, standardization, one-hot encoding for categorical variables, datatype casting, etc. The missing categorical values are imputed using the most frequent value if they are rare. Otherwise if the missing value is frequent, they are give a "missing" label instead. Missing numerical values are imputed using the mean and a binary column is added to show a 'missing' indicator for the missing values. Numerical values are also scaled using a Yeo-Johnson transformation in order to get the data close to a Gaussian distribution.

During the model development process, the algorithm was trained and evaluated on a variety of datasets such as email spam detection, customer churn, credit card fraud detection, cancer diagnosis, and titanic passanger survivor prediction.

This Binary Classifier is written using Python as its programming language. SciKitLearn is used to implement the main algorithm, evaluate the model, and preprocess the data. Numpy, pandas, and feature_engine are used for the data preprocessing steps. SciKit-Optimize was used to handle the HPT. FastAPI + Nginx + uvicorn are used to provide web service which includes two endpoints- /ping for health check and /infer for predictions in real time.

About

Binary Classifier using PyCaret for Binary Classification - Base problem category as per Ready Tensor specifications.


Languages

Language:Python 96.6%Language:Shell 2.3%Language:Dockerfile 1.0%