Giter Club home page Giter Club logo

supun-na97 / divorce-prediction Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 0.0 128.19 MB

The aim of this machine learning application is that it can use to predict divorce. The dataset is the Divorce Prediction dataset by Larxel from the website: Kaggle. There are few models tested when developing the application, including Tree-based models like Decision trees, Random forest, XGBoost and a binary classification model called Logistic Regression. In addition, there are some data pre-processing techniques also used to analyze and normalize the dataset. Then, after applying the normalized datasets to all the models and predicting, some model optimizing methods used to get more accuracy. To build the final application, I have used the Flask framework in Python to expose the model via a REST web API. And i have used Reactjs framework to view frontend. To run as an artefact, I have used the requirements.txt technique in Pip dependency management.

Python 0.09% TeX 28.49% HTML 71.42%

divorce-prediction's Introduction

divorce_predictor

Machine learning application Devorce predit

step 1 - Please note: PIP dependency management tool need to be installed in the computer

step 2 - Open terminal or CMD from this folder and type pip install -r requirements.txt

step 3 - Once the libraries have installed, type python app.py Then the app server will be started.

step 4 - To test, run this curl

linux or mac

curl -XPOST -H "Content-type: application/json" -d '[1, 1, 0, 0, 0, 1, 0, 0, 1, 2, 2, 2, 1, 0, 0, 1, 1, 0, 0, 0]' 'http://127.0.0.1:5000/api/v1/divorce/predict'

windows

curl -i -X POST -H "Content-Type:application/json" -d "[1, 1, 0, 0, 0, 1, 0, 0, 1, 2, 2, 2, 1, 0, 0, 1, 1, 0, 0, 0]" http://127.0.0.1:5000/api/v1/divorce/predict

postman

url - http://127.0.0.1:5000/api/v1/divorce/predict method - POST request data - [0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1]

divorce-prediction's People

Contributors

dependabot[bot] avatar imgbotapp avatar supuna97 avatar

Stargazers

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