Code Monkey home page Code Monkey logo

bodyfatestimator's Introduction

About the dataset

Dataset can be downloaded from here

Attributes in the dataset

  1. Density determined from underwater weighing
  2. Percent body fat from Siri's (1956) equation
  3. Age (years)
  4. Weight (lbs)
  5. Height (inches)
  6. Neck circumference (cm)
  7. Chest circumference (cm)
  8. Abdomen 2 circumference (cm)
  9. Hip circumference (cm)
  10. Thigh circumference (cm)
  11. Knee circumference (cm)
  12. Ankle circumference (cm)
  13. Biceps (extended) circumference (cm)
  14. Forearm circumference (cm)
  15. Wrist circumference (cm)

Deployment on Azure Cloud

Set up your initial environment

  1. Have an Azure account with an active subscription. Create an account for free.
  2. Install Python 3.6 or higher.
  3. Install the Azure CLI, with which you run commands in any shell to provision and configure Azure resources.

Commands for the CLI


Check the Python Version
 py -3 --version

Check the Azure CLI Version
az --version

Then sign in to Azure through the CLI:
az login

A tab will be opened in the browser,login into you're registered azure account,after that we must host our code on github,so first create a repository in github and then copy the url of the repository and clone that repository into the local machine,if code files are already present in the local system,then no need to follow the below step!

Follow this in case your repository is on github and not on our local machine!


git clone  <repository_url>

Once cloned the repository,go to that directory by using the cd command as

cd <cloned_repository_name>

Once the control is inside the cloned repository folder,you need to install all the requirements which are mentioned in the requirements.txt file,but before that we need to create a virtual environment!,it is very important,so for creating a virtual environment follow the commands

py -3 -m venv .venv

The above ↑ command will create a virtual environment,then type in

.venv\scripts\activate

This command is to activate the virtual environment,after this type in

pip install -r requirements.txt

By this command you will install all the packages which are mentioned in the requirements.txt file,into the virtual environment,once this is done,the task is almost 80% completed,after this inorder to check if the Flask App is running successfully on local host run this command

flask run

If you face any error while running this command,check out whether you're in the same directory where your app.py is residing or not,Once this command is successfully executed,the last step is to deploy the flask app on the Azure Platform,so for that follow the following command ↓

az webapp up --sku B1 --name <app-name>

This will take sometime,after completion of this command,you'll find something like this ↓ in your cmd (for example!)

{
  "URL": "http://bodyfatestimator.azurewebsites.net",
  
}

Copy that url from URL and that is your deployment of the web app on the Azure cloud.

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.