Giter VIP home page Giter VIP logo

kubeflowaccupred's Introduction

Customer Frequency Prediction Pipeline


Completely trains an XGBoost model for Customer Frequency prediction using Kubernetes

๐Ÿ“ Table of Contents

๐Ÿง About

Components in the pipeline include:

  • Data prerocessing
  • Data Splitting
  • Hyperparameter Optimisation and Cross Validation
  • Model Saving (Local or Cloud)
  • Model testing on new data

๐Ÿ Getting Started

You will need k8s set up with kubeflow before doing anything.

Prerequisites

Make sure you have poetry installed, if you use arch you can install it by running:

yay -S python-poetry 

This is how I setup Kubeflow with MiniKube

I have kubectl aliased to minikube kubectl --

minikube start --cpus 4 --memory 4000 --disk-size=10g

curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"  | bash

git clone [email protected]:kubeflow/manifests.git

cd manifests

while ! kustomize build example | awk '!/well-defined/' | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 10; done

kubectl get pods -A
# To make sure its working
# Give all the pods some time to get running

kubectl port-forward svc/istio-ingressgateway -n istio-system 8080:80

Installing

To install all dependencies, I highly recommend using a virtual environment

poetry install

๐Ÿ”ง Running the trainging Pipeline

poetry run python train_pipeline_execute.py --host http://your_kubeflow_host_url

๐ŸŽˆ Monitoring

This project uses Aim for monitoring model performance. Run aim up in your terminal after the completion of the pipeline. This will open a dashboard in your browser for monitoring.

It will look something like this

swappy-20231130_123149

swappy-20231130_123119

๐Ÿš€ Deployment

Gradio frontend has been built, can be deployed anywhere using the inference.py script

โ›๏ธ Built Using

  • Python
  • XGBoost
  • Aim - Monitoring and Tracking
  • Kubeflow - Distributed computing for training and deployment
  • Gradio - API

โœ๏ธ Authors

kubeflowaccupred's People

Contributors

viraj-s15 avatar

Watchers

 avatar  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.