Giter Site home page Giter Site logo

underdoge / fraud-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28.22 MB

Final Project for the Código Facilito's 2023 Machine Learning Bootcamp

Home Page: https://fraud-detection-underdoge.streamlit.app

License: MIT License

Python 15.69% Jupyter Notebook 84.31%

fraud-detection's Introduction

Fraud Detection 🔎

Final Project for the Código Facilito's 2023 Machine Learning Bootcamp

Hosted Streamlit App

A hosted version of the model can be found on Streamlit here.

Installation

Open up a Terminal and enter the following commands:

Cloning the repository

git clone https://github.com/underdoge/fraud-detection

cd fraud-detection

Creating the virtual environment

python -m venv .venv

Activating the virtual environment

source .venv/bin/activate

Installing on macOS / Linux

pip install -r requirements.txt

Launching the mlflow server

mlflow server

Running the metaflow pipeline (requires mlflow server running)

python fraud_detection_flow.py run --source-file data/credit_card_transactions-ibm_v2.csv

Import mlflow model into bentoml

python import_mlflow_model.py

Verify model was successfully imported in bentoml

bentoml models list

Launch bentoml service

cd service
bentoml serve service.py --reload

Build Bento

bentoml build

List created Bentos

bentoml list

Create Docker image from Bento (requires Docker)

bentoml containerize <model tag from previous step e.g. fraud-detection-service:worn7ggjg2q63yqs>

Run model from Docker image (requires Docker)

docker run -p 3000:3000 <model tag from previous step e.g. fraud-detection-service:worn7ggjg2q63yqs>

Requirements

  • Python 3.11.6 or greater
  • Git (to clone the repo)
  • Docker (to create Docker image)

Dataset Sources

fraud-detection's People

Contributors

underdoge avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.