Coder Social home page Coder Social logo

belladu0201 / ids706_beibei-du-project4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nogibjj/ids706_beibei-du-project4

0.0 0.0 0.0 1.27 MB

License: Creative Commons Zero v1.0 Universal

Makefile 0.01% Dockerfile 0.01% Python 0.05% Jupyter Notebook 99.93%

ids706_beibei-du-project4's Introduction

IDS706_Beibei-Du-Project4

  • Create a Microservice that returns a JSON payload and performs a Data Engineering related task
  • Push tested source code to Github and perform Continuous Integration with Github Actions (or similar SaaS Build service)
  • Configure Build Server to Deploy Changes on build (Continuous Delivery)
  • Create realistic API (reference here: Data Engineering: Chapter 5 aws chapter for pragmatic ai.)

Overview

In this project, I am using the FastAPI to deploy some data enginerring Tasks. I take a dataset from Kaggle about the fetal health and I want to discover what are the features that will classify/predict the fetal_health status and using machine learning to achieve a high accuracy on testing set. I considered the following models: KNN, Random Forest, Logistic regression, XGBoost. In the output that I received, XGBoost performed the best with an accuracy score of 94.13%. The confusion matrix is shown below: img

In the next step of this project, I try to randomly select 10 rows from the dataset and find the mode fetal_health status. By doing that, I have write out scripts in cli.py and main.py. It can be run through the command in the following. I run the command several times and the most frequent health status for the fetal is 1.0, which is the Normal Status. img

Implementation

  • Install the packages in the requirements.txt and set up for FastAPI
  • Code for the project and functions to perform the tasks
  • Perform Continous Intergration on Github Actions (main.yml)
  • Deploy Continous Delivery

How to Use

  • Use the command uvicorn main:app --reload to run the server

Reference

https://www.kaggle.com/datasets/andrewmvd/fetal-health-classification https://github.com/noahgift/functions-from-zero2

ids706_beibei-du-project4's People

Contributors

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