Coder Social home page Coder Social logo

flipr-hackathon's Introduction

Flipr hackathon

Flipr hackathon - Covid-19 in India

Task 1

How to use- Place all the files which are available in the Task1 folder in the same directory. The order to be followed is:

  1. Preprocessing - Other Features.ipynb
  2. Preprocessing - Population.ipynb
  3. Predictions.ipynb

Each file has locations marked where you need to pass the address to your dataset files. Each of the preprocessing files will output a data file (four in total, two for each category) which will be take up by the next file. The final predictions file output a file with the predicted covid cases for each data provided in the test dataset.

Preprocessing - other features:

The first file takes care of all the features that have missing values, except population [2011], population [2001] and female population. Based of the distribution observed, relevant adjustments were made (mean, mode or other statistical values were used here, see code for further details).

Preprocessing - Population

The second preprocessing file makes adjustments for missing population [2011] values (48 in total). Population for 2011, population for 2001 and female population had high correlation, thus only one was to be used, to avoid over-fitting. At the same time, the other two could be used to fill the population 2011 missing values. Using simple linear regression model, we adjusted the values in the dataset.

Prediction

The last file takes care of adding categorical features (relevant ones) in the final data file. We made predictions using a numbers of regressions (Linear, SVR, xgboost, random forest, etc.). Out of these, random forest gave the least error along with minimum spread and maximum score, thus emerging as a clear choice. Same was used for making predictions, and at last the values obtained were saved in a file

flipr-hackathon's People

Contributors

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