Skip to content

This project focuses on the development and evaluation of machine learning models to predict credit card application and crime rate.

Notifications You must be signed in to change notification settings

larenwell/ai-ml-pycaret-beerhub-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ds-ml-beer-challenge

Project Description

This project focuses on the development and evaluation of machine learning models to predict credit card application and crime rate. The primary tools used in this project include PyCaret, LightGBM, and various Python libraries.

Analysis Cases

This repository contains two analysis cases:

  1. Credit Card Application:

    • Objective: Build a classification model with a binary target that predicts whether a credit card application should be approved or not.
    • Notebook: credito_model.ipynb
  2. Crime Rate:

    • Objective: Build a regression model to predict the crime rate.
    • Notebook: crimen_model.ipynb

Configuration

To set up the environment for this project, follow the steps below:

Step 1: Install Homebrew (if not already installed) outside of your development environment

  1. Open your terminal (outside of your development environment) and run the following command to install Homebrew:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Add Homebrew to your PATH:

    nano ~/.zshrc
    export PATH="/usr/local/bin:/opt/homebrew/bin:$PATH"
  3. Reload your shell configuration:

    source ~/.bash_profile  # or source ~/.zshrc, depending on your shell

Step 2: Set Up Your Virtual Environment within your development tool

  1. Activate your virtual environment within your development tool

    conda activate myenv
  2. Install the required libraries using 'brew' and 'pip':

    brew install libomp
  3. After installing libomp, export the necessary environment variables for LightGBM:

    nano ~/.zshrc
    export CMAKE_ARGS="-DOpenMP_C_FLAGS=-Xpreprocessor\ -fopenmp\ -I$(brew --prefix libomp)/include -DOpenMP_C_LIB_NAMES=omp -DOpenMP_CXX_FLAGS=-Xpreprocessor\ -fopenmp\ -I$(brew --prefix libomp)/include -DOpenMP_CXX_LIB_NAMES=omp -DOpenMP_omp_LIBRARY=$(brew --prefix libomp)/lib/libomp.dylib"
  4. Install the LightGBM library:

    pip install lightgbm

Step 3: Installation of required dependencies.

To install the required dependencies, run:

pip install -r requirements.txt

Usage

To run the models and analyses, use the provided Jupyter notebooks:

  • credito_model.ipynb: Credit model analysis and training
  • crimen_model.ipynb: Crime model analysis and training

Contribution

Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.

Feel free to further customize this README.md file to fit your specific needs.

About

This project focuses on the development and evaluation of machine learning models to predict credit card application and crime rate.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published