Giter Club home page Giter Club logo

income-prediction's Introduction

Income Prediction

Predicting average yearly income based on satellite imagery using CNNs.

Built for the Stanford ACMLab Fall 2020 project by Clare Chua, Ryan Chi, Tejas Narayanan, Nathan Kim, and Zander Lack (Team CRouToNZ).

Generate predictions

A predict(filepath) function has been provided in predict.py. An example of how to use this function is in how_to_predict.py, and has also been copied here:

import predict

print(predict.predict('data/imagery/14_2801_6536.jpg'))

Development setup

Data

Add the following files/folders to the data folder:

imagery/
test_imagery/
16zpallnoagi.csv
worldelev.npy
ziplatlon.csv

These files are not included in the Git repository because they are too large.

Libraries

Next, ensure the most recent versions of the following libraries are installed:

numpy==1.19.2
torch==1.6.0
Pillow==8.0.0
pandas==1.1.3

To set up a virtual environment for this project:

  1. Navigate to the project directory in the terminal.
  2. python3 -m venv venv/. This will create a virtual environment folder.
  3. source venv/bin/activate. This will activate the virtual environment. (venv) should appear at the beginning of the terminal prompt.
  4. pip install numpy torch pillow pandas. This will install the most recent versions of Numpy, PyTorch, and Pillow (Python Image Library).

After following these steps the first time, the only required step is to source venv/bin/activate to activate the environment.

income-prediction's People

Contributors

tnarayanan avatar zanderl017 avatar

Stargazers

Robin Cole avatar  avatar

Watchers

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