Giter Site home page Giter Site logo

ashish-gh / machine_learning_flask_rest_api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.47 MB

Machine Learning Model with FLASK REST API. https://hackernoon.com/machine-learning-w22g322x

Shell 0.30% Python 96.62% Jupyter Notebook 2.95% HTML 0.13%

machine_learning_flask_rest_api's Introduction

Machine Learning Model with FLASK REST API

Alt text

Boston housing price prediction

The dataset used in this project comes from the UCI Machine Learning Repository. This data was collected in 1978 and each of the 506 entries represents aggregate information about 14 features of homes from various suburbs located in Boston.

The features can be summarized as follows:

  • CRIM: This is the per capita crime rate by town
  • ZN: This is the proportion of residential land zoned for lots larger than 25,000 sq.ft.
  • INDUS: This is the proportion of non-retail business acres per town.
  • CHAS: This is the Charles River dummy variable (this is equal to 1 if tract bounds river; 0 otherwise)
  • NOX: This is the nitric oxides concentration (parts per 10 million)
  • RM: This is the average number of rooms per dwelling
  • AGE: This is the proportion of owner-occupied units built prior to 1940
  • DIS: This is the weighted distances to five Boston employment centers
  • RAD: This is the index of accessibility to radial highways
  • TAX: This is the full-value property-tax rate per $10,000
  • PTRATIO: This is the pupil-teacher ratio by town
  • B: This is calculated as 1000(Bk โ€” 0.63)ยฒ, where Bk is the proportion of people of African American descent by town
  • LSTAT: This is the percentage lower status of the population
  • MEDV: This is the median value of owner-occupied homes in $1000s

Outline

BlogPost

For detailed overview, here is the accompanying blog titled: Machine Learning Model with FLASK REST API

Pre-requisites

  • Flask
  • Postman
  • Libraries and Packages

Flask Installation provides a practical guide for installation of Flask.

For platform-specific instructions, read here

Postman Installation provides a practical guide for installation of Postman.

Installing required packages

After NLTK has been downloaded, install required packages

pip install -r requirements.txt

How to run

You can either run Jupyter notebook to go through every process and develop model or use developed model and run application through terminal.

  • Jupyter Notebook Binder

You can run the [Boston_house_price_prediction.ipynb] (https://github.com/ashish-gh/boston_housing_price/blob/master/Boston_house_price_prediction.ipynb) which also includes step by step instructions.

  • Through Terminal
python app.py

machine_learning_flask_rest_api's People

Contributors

ashish-gh avatar

Watchers

James Cloos 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.