Giter Club home page Giter Club logo

learning-'s Introduction

Learning- Complete ML model

This is a project that is meant to learn best in industry practices about Linear Regression

Making the model:

  • We Preprocess by dropping irrelevant columns, and fill the na values where possible and drop some na values
  • We clean the columns making the values as same represenation and casting them into required datatypes
  • Add some columns and grouping some rows for better prediction
  • Removing outliers in data using common and domain knowledge
  • Using dummies to do one hot encoding of categorical column 'location'
  • Make the model

Making the server

  • The server is made using flask in python (The models are not copied again in the server folder)
  • The server has a main page named server.py that redirects the requests and the prediction and other data processing id done in the util.py page
  • '/predict_home_price' is the route that recives the requests and returns a json with the key 'estimated price'
  • We also have the /get_loation_names' that returns the location names with key value 'location' which can be used to be displayed in the form as drop down
  • the util has two methods one loads the artifacts i.e the odel and column names(column names are necessary while predicting as our model has dummies)
  • The other method predicts the estimated price

Making the client side

  • The client side is also made using flask
  • The app.py redirects requests, we send the variable pred_price to the html page usign jinja2 of flask
  • The html page contains the form which when submitted calls '/send_data' routine
  • The send_data collects the form data converts it to dictionary and sends it to the flask server usign requests.post method
  • The app first loads the location name and the location names are added using jinja template

Changes that can/have to be done

  • Making the UI better
  • Deploying on AWS

The project is a learning project.The model and server is inspired by the Youtube tutorial. The client side was implemented using javascript in the tutorial, which I implemented in flask instead to keep the entire project in python.

learning-'s People

Contributors

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