Git Product home page Git Product logo

garden_nerd_hacker_earth_challenge's Introduction

Hacker Earth Garden Nerd Data Science Competition

Dataset

The data folder consists of 2 folders and 3 CSV files:

  • train - Contains 18540 images from 102 categories of flowers
  • test - Contains 2009 images
  • train.csv - Contains 2 columns and 18541 rows (including the headers), which consists of image id and the true label for each of the images in the train folder
  • test.csv - Contains the image id for the images present in test folder for which the true label needs to be predicted sample_submission.csv - Specifies the format for the submission file

For more information on type of flowers provided as input you can visit here with valid hackerearth account. One can download the dataset from here.

Here are some of the sample images from the dataset:

Dependencies

The dependencies to run this code are:

Pre-Processing

Please follow notebooks to get information on the preprocessing done on images before training the model

Model

Transfer learning is a technique to use a model learned on one problem to apply it to similar problem. We can efficiently achieve state-of-the-art results in short span of time. Special props to @rednivrug for providing the baseline. The final solution is an ensemble of three architectures of popular

  1. ResNet
  2. DenseNet

more information is given in the code

Training

To train the model, you can run

./src/code_HE_Train.ipynb

Edit the path to load the dataset and save the weights

Testing

For just testing the model, run

./src/code_HE_Train.ipynb

Download the weights from the link given in the notebook and edit the path to load them

Note

I was able to achieve rank of 17 out of 7620 users taking part in this competition with an accuracy of 89.99390 in just 5 days. This demonstrates the power of ensemble learning. One will have to re-train learn and learn2 models to get the final accuracy.

Courtesy

The dataset belongs to hackerearth and dataquest. It is used here to demonstrate model capabilities.

garden_nerd_hacker_earth_challenge's People

Contributors

sameerkmarathe avatar frompingutoboo avatar

Watchers

 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.