Giter Club home page Giter Club logo

ml-webapp's Introduction

Flask Web Application - Linear Regression

For the following attributes of a basketball player, this web application builds linear regression model on loading home page. In the home page, you can then provide new player attributes to predict his average points.

Independent attributes:

  1. height_ft = Height in feet
  2. weight_pd = Weight in pounds
  3. successfieldgoals% = percent of successful field goals (out of 100 attempted) (0.xx format)
  4. successfreethrows% = percent of successful free throws (out of 100 attempted) (0.xx format)

Dependent variable:

  1. avg_points = average points scored per game

ml-webapp-main.py is coded in Python 3.7

Install Python 3.7 (https://www.python.org/downloads/) and following packages(using pip) before running the script

Packages:

  1. pandas
  2. sklearn
  3. flask

To run the application:

python3 ml-webapp-main.py

  • Make sure the data files are the same location as py file

Web application runs on port 9000 as in the code. You can configure to run on different port.

Open the browser and load "http://localhost:9000/"

Fill in the inputs and click on "Predict"

The output page will have inputs as well as predicted average score of basket ball player.

Note: The data has been downloaded from https://college.cengage.com/mathematics/brase/understandable_statistics/7e/students/datasets/mlr/frames/frame.html

ml-webapp's People

Contributors

pawanyaddanapudi avatar

Stargazers

 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.